more useful options | |
PerlMonks |
Re: Writing to command line when promptedby sschneid (Deacon) |
on Jun 28, 2002 at 14:42 UTC ( [id://178023]=note: print w/replies, xml ) | Need Help?? |
Options entered on the command line are stored in the @ARGV array, so you could hypothetically access the two filenames perl script.pl file_in file_out with $ARGV[0] and $ARGV[1]. If you are using more than just the two filenames (or plan on implementing switched options, etc) I would highly suggest taking a look at GetOpt::Long.
scott.
In Section
Seekers of Perl Wisdom
|
|