- or download this
if ($#ARGV != 0) {
print "One, and only one (not $#ARGV), command line parameter is
+expected\n";
exit;
}
- or download this
@ARGV == 1 or die "usage: $0 inputfile\n";
- or download this
my $inputFile=$ARGV[0];
- or download this
my $inputFile = shift;
- or download this
if ( not -e $inputFile) {
die "$inputFile doesn't exist!!!\nExiting.\n";
}
- or download this
-f $inputFile or die "input file '$inputFile' does not exist.\n";
- or download this
open my $file, $inputFile or die "Could not open $inputFile: $!";
- or download this
open my $file, '<', $inputFile or die "Could not open $inputFile: $!";