From 787a7fc1af997ab8f2d85105cffcdf46f5007e9b Mon Sep 17 00:00:00 2001 From: Simon Owen Date: Sun, 13 Nov 2011 17:46:55 +0000 Subject: [PATCH] Fixed command-line argument Changed getopt to getops to fix -v option for verbose output. --- png2bin.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/png2bin.pl b/png2bin.pl index 4a08798..4cb5a35 100755 --- a/png2bin.pl +++ b/png2bin.pl @@ -10,7 +10,7 @@ use Compress::Zlib; use Getopt::Std; # Allow -v option for verbose output -getopt('v'); +getopts('v'); # Strip path from input filename, and check $0 =~ s/.*\///;