stuffy has asked for the wisdom of the Perl Monks concerning the following question:
The file contains a list of equipment, and comments that someone has put in about the equipment for the day. I am sorting all comments by equipment number...eg.while (<FOO_FILE>){ if (/$foo/){ $that = 1; } if (/$bar/){ $that = 0; } if ($that){ print $_; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(kudra) Re: Reading entire file.
by kudra (Vicar) on May 04, 2001 at 10:06 UTC | |
by stuffy (Monk) on May 04, 2001 at 10:16 UTC | |
by ar0n (Priest) on May 04, 2001 at 13:20 UTC | |
by cLive ;-) (Prior) on May 04, 2001 at 10:31 UTC | |
by stuffy (Monk) on May 04, 2001 at 11:08 UTC | |
|
Re: Reading entire file.
by bjelli (Pilgrim) on May 04, 2001 at 12:13 UTC | |
|
Re: Reading entire file.
by diarmuid (Beadle) on May 04, 2001 at 13:52 UTC | |
|
Re: Reading entire file.
by cLive ;-) (Prior) on May 04, 2001 at 10:23 UTC | |
by stuffy (Monk) on May 04, 2001 at 11:47 UTC | |
by cLive ;-) (Prior) on May 04, 2001 at 13:43 UTC | |
by cLive ;-) (Prior) on May 04, 2001 at 13:28 UTC | |
by stuffy (Monk) on May 04, 2001 at 13:55 UTC |