in reply to how can I input different files as an argument while I am running my perl program?
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../program.pl file1.txt <optionally more files>
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: how can I input different files as an argument while I am running my perl program?
by Anonymous Monk on Jul 12, 2000 at 01:01 UTC |
In Section
Seekers of Perl Wisdom