diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-07-22 14:40:00 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-07-22 14:40:00 +0000 |
commit | f9b231c0a368d482b9c2979933d73105933d339e (patch) | |
tree | 20f94d7743e9a1f4d42d385ea91bf4705bf6268c /editor | |
parent | fc1e412af314592b815c32a5604ab7834ef7b9fb (diff) | |
download | netpbm-mirror-f9b231c0a368d482b9c2979933d73105933d339e.tar.gz netpbm-mirror-f9b231c0a368d482b9c2979933d73105933d339e.tar.xz netpbm-mirror-f9b231c0a368d482b9c2979933d73105933d339e.zip |
Make work with older Perl
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1516 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rwxr-xr-x | editor/pnmquant | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/pnmquant b/editor/pnmquant index 175f6906..5edbe85e 100755 --- a/editor/pnmquant +++ b/editor/pnmquant @@ -149,7 +149,7 @@ sub openSeekableAsStdin($) { tell(INFH); # Avoids bogus "INFH is not referenced" warning } } else { - open(STDIN, "<", $infile) + open(STDIN, "<$infile") or die("Unable to open input file '$infile'. Errno=$ERRNO"); } } @@ -194,7 +194,7 @@ sub makeColormap($$$$$) { push(@options, '-quiet'); } - open(STDOUT, ">", $mapfileSpec); + open(STDOUT, ">$mapfileSpec"); my $maprc = system("pnmcolormap", $ncolors, @options); |