Thread
:
[SOLVED] Using $ARGV[1] in PERL to open any text file for this program.?
View Single Post
#
3
(
permalink
)
06-10-2007, 05:36 PM
Greg S
Posts: n/a
perl numbers the args starting at zero, so you would do this:
open (MYFILE, $ARGV[0]);
(Other languages reserve arg0 for the program name. In pearl, $0 is set to the name of the script.)
__________________
Greg S