B
bernd
Hello folks,
does somebody know the proper way of skipping a single input file (or
at least proceed with the next one) when processing a list of files
given on the command line when running perl -na, that means, the lines
of the current file should not be read in (any more) but the program
should start with the next file in the argument list
close ARGV ;
does not work obviuosly, it just resets $.
An additional
$ARGV = shift @ARGV ;
does not help either, since $ARGV contains the name of the next file
then, but $_ does not change immediately.
Any idea?
Cheers
Bernd
does somebody know the proper way of skipping a single input file (or
at least proceed with the next one) when processing a list of files
given on the command line when running perl -na, that means, the lines
of the current file should not be read in (any more) but the program
should start with the next file in the argument list
close ARGV ;
does not work obviuosly, it just resets $.
An additional
$ARGV = shift @ARGV ;
does not help either, since $ARGV contains the name of the next file
then, but $_ does not change immediately.
Any idea?
Cheers
Bernd