in reply to Invalid argument
You don't even have to change handlefix.my $infile = !@ARGV?<>:shift @ARGV; my $outfile = !@ARGV?<>:shift @ARGV; handlefix($infile, $outfile);
Might I also suggest to rewrite conditionals to avoid having a negative condition? For example, $infile = @ARGV ? shift @ARGV : <>
blokhead
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Invalid argument
by Andrew_Levenson (Hermit) on Dec 01, 2006 at 20:34 UTC |