Just specify the files as arguments. The file names will be
available in the @ARGV array.
If you want to input data from those files, you can do several
things, depending on how you need to use the data from them:
- If you need to process their data sequentially, you could
simply use the <> "magic" construct, which will read
data from all the files given as arguments (or from standard
input if no files are given). It will appear as if all the files
have been concatenated. If you need to differentiate between
the different files, you could use eof as described in its
documentation, to test at each iteration if it's the end of
the current file.
- If you need to get data simultaneously from different files,
you can explicitly open them by accessing the @ARGV array.
--ZZamboni