in reply to Parsing a file one line at a time
You can do the same for the other fields.open(FILE1, $ARGV[0]); $c=0; while (<FILE1>) { $line=$_; printf("line %2d: %s", $c++, $line); $ref=$1 if /^Referer: (.*)/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Parsing a file one line at a time
by chromatic (Archbishop) on Jul 23, 2000 at 08:34 UTC |