diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-12-05 04:21:13 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-12-05 04:21:13 +0000 |
commit | a4183b2fdd19d83c7705c423623c117c4118860f (patch) | |
tree | deea607f3e64d2f73156138f7bee96e234c32598 /LedgerSMB/locales.pl | |
parent | 6eb1b88d9ac9fde4efca4668b99d9628f0a9cd10 (diff) |
Converting 2-arg open to 3-arg open
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@719 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/locales.pl')
-rwxr-xr-x | LedgerSMB/locales.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/LedgerSMB/locales.pl b/LedgerSMB/locales.pl index 91f61015..0bfc2503 100755 --- a/LedgerSMB/locales.pl +++ b/LedgerSMB/locales.pl @@ -110,7 +110,7 @@ foreach $file (@progfiles) { } } - open FH, ">$file" or die "$! : $file"; + open FH, '>', "$file" or die "$! : $file"; if ($charset) { print FH qq|\$self{charset} = '$charset';\n\n|; @@ -179,7 +179,7 @@ $self{subs} = { if (!$noMissing) { if (@missing) { - open FH, ">$file.missing" or die "$! : missing"; + open FH, '>', "$file.missing" or die "$! : missing"; print FH qq|# module $file # add the missing texts and run locales.pl to rebuild @@ -206,7 +206,7 @@ $self{subs} = { # redo the all file if ($buildAll) { - open FH, ">all" or die "$! : all"; + open FH, '>', "all" or die "$! : all"; print FH q|# These are all the texts to build the translations files. # to build unique strings edit the module files instead @@ -255,7 +255,7 @@ sub scanfile { my $fh = new FileHandle; return unless (-e $file or $file !~ /custom/); - open $fh, "$file" or die "$! : $file"; + open $fh, '<', "$file" or die "$! : $file"; $file =~ s/\.pl//; $file =~ s/$bindir\///; @@ -344,7 +344,7 @@ sub scanmenu { my $file = shift; my $fh = new FileHandle; - open $fh, "$file" or die "$! : $file"; + open $fh, '<', "$file" or die "$! : $file"; my @a = grep /^\[/, <$fh>; close($fh); |