in reply to read multi lines of a file in perl
(many more compact notations for the same exist)local $_; while(<WORDLIST>) { last if /process/; } while(<WORDLIST>) { print; last if /end process/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: read multi lines of a file in perl
by sharan (Acolyte) on Nov 05, 2008 at 14:31 UTC | |
by binf-jw (Monk) on Nov 05, 2008 at 15:33 UTC |