in reply to user input file
which the user would invoke asopen(FILE,"<", $ARGV[0]) or die "Open failed for $ARGV[0]: $!"; + my @lines=<FILE>;
Note as well that I've added a test to see if the file open succeeded, and added a diagnostic in case it didn't. See Simple Opens in perlopentut.$ perl script.pl Working_On.csv
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: user input file
by torres09 (Acolyte) on Jun 19, 2013 at 13:47 UTC | |
by MidLifeXis (Monsignor) on Jun 19, 2013 at 13:51 UTC | |
by torres09 (Acolyte) on Jun 19, 2013 at 13:56 UTC | |
by kennethk (Abbot) on Jun 19, 2013 at 15:37 UTC |