in reply to Using Getopt::Long it input different data sets

The simple while (<>) {} was designed for this case. If you have no command line arguments, this reads from STDIN, otherwise treats all arguments in @ARGV as filenames, tries opening them and reads from all of them sequentially. See perldoc perlop under I/O Operators.

-- Hofmator

Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^2: Using Getopt::Long it input different data sets
by chinamox (Scribe) on Oct 10, 2006 at 14:35 UTC

    Thank you very much for your clairification. I am going back over perlop again right now...