in reply to compare what is in ARGV[0] to a file
In addition, your grep statement is non-sensical. See the documentation for it. If you want to loop through @lines and compare it against $ARGV[0] (why not $zero_arg?), you'll have to either explicitely set up a loop to do it, or modify your grep statement to compare against $_, which will iteratively contain each element in @lines in turn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Answer: compare what is in ARGV0 to a file
by arturo (Vicar) on Nov 01, 2000 at 02:28 UTC |