in reply to simple hexdump
Very nice. However, was it your intention for it to print out "Usage: hexdump.pl file at /filepath/hexdump.pl line 13." when the user does not give a filename? If not then, I'd use this instead:
$#ARGV == 0 or die "Usage: hexdump.pl file\n";
That changes the output to simply "Usage: hexdump.pl file".
|
|---|