in reply to read multiple files

or use ARGV:
@ARGV = glob('*.txt'); while (<ARGV>) { # Do some clever stuff with $_ # $ARGV contains the current file name print "$ARGV $_"; }

Replies are listed 'Best First'.
Re^2: read multiple files
by Bloodnok (Vicar) on Jan 28, 2009 at 14:14 UTC
    ... or even utilise the special iteration of @ARGV ...
    @ARGV = glob('*.txt'); while (<>) { # Do some clever stuff with $_ # $ARGV contains the current file name print "$ARGV $_"; }
    or does that special operation of @ARGV only work for unadulterated i.e. non modified internally to the script, values of @ARGV ??

    There you go, once again living up to my sig :D

    A user level that continues to overstate my experience :-))