- or download this
system_prompt>my_script.pl $file1
system_prompt>my_script.pl $file2
- or download this
system_prompt>my_script.pl $file1 $file2
- or download this
die "Usage: $0 file1 file2" unless @ARGV == 2;
...
...
open my $input_fh, '<', $filename or die "Can't open '$filename':
+$!";
...
}
- or download this
my $exit = '';
until ($exit) {
... code where $exit never becomes TRUE ...
}
- or download this
sub infile($file1); #will this be passed to ARGV[0]?
...
sub infile(file2); #will this be sent to ARGV[0] as well after the fi
+rst file?