more useful options | |
PerlMonks |
Re: how can I input different files as an argument while I am running my perl program?by plaid (Chaplain) |
on Jul 12, 2000 at 00:27 UTC ( [id://22099]=note: print w/replies, xml ) | Need Help?? |
When you run your program, just specify the filename as
an argument on the command line:
The filenames can then be found inside the script in the global array @ARGV.
In Section
Seekers of Perl Wisdom
|
|