- or download this
my $infile = shift || die usage() ;
my $outfile = shift || die usage() ;
...
sub usage () {
print "usage : prog foo bar\n" ;
}
- or download this
unless(@ARGV == 2)
{
...
}
my ($infile, $outfile) = @ARGV ;
- or download this
die "usage : prog foo bar\n" unless (@ARGV == 2) ;
my ($infile, $outfile) = @ARGV ;