View Single Post
  #3 (permalink)  
Old 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.)

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!