in reply to Re^2: Hashes and Arrays - Selecting a memory structure
in thread Hashes and Arrays - Selecting a memory structure

The while loop doesn't care if the lines come from one file or many, but the sample code is much more concise if I use a single 'file' with duplicated lines. You could:

@ARGV = @filenames; while (<>) { $filename = shift @filenames if $. == 1; ... }

to process a swag of files.


Perl is environmentally friendly - it saves trees