alexiskb has asked for the wisdom of the Perl Monks concerning the following question:
where 'done' is the first thing on the line..."ZYZYGY3",16-AUG-2002" done,3485
while (<PAST>) { next until $. > 1; $contents[$co] = $_; next if $_ = /^done/; next if m/^\s+$/; $co++; }
"ZYZYGY1",16-AUG-2002"(\n) "ZYZYGY2",16-AUG-2002"(\n) "ZYZYGY3",16-AUG-2002"(\n) done,3485(\n)
"ZYZYGY1",16-AUG-2002"(\n) "ZYZYGY2",16-AUG-2002"(\n) "ZYZYGY3",16-AUG-2002"(\n) done,3485(\n) (\n)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: term in last line of flatfile
by demerphq (Chancellor) on Oct 10, 2002 at 16:55 UTC | |
by alexiskb (Acolyte) on Oct 11, 2002 at 08:41 UTC | |
|
Re: term in last line of flatfile
by kabel (Chaplain) on Oct 10, 2002 at 16:42 UTC | |
|
Re: term in last line of flatfile
by admiraln (Acolyte) on Oct 10, 2002 at 16:45 UTC | |
|
Re: term in last line of flatfile
by blakem (Monsignor) on Oct 10, 2002 at 22:57 UTC |