in reply to Print area between two lines within a file.

Something like this...
while(<FH>) { print if /USE/.../USE/; }
andy. update: thanks Hofmater and nardo, third dot inserted.

Replies are listed 'Best First'.
Re: Re: Print area between two lines within a file.
by nardo (Friar) on Sep 06, 2001 at 21:46 UTC
    That should be 3 dots rather than two. Because the right operand is true whenever the left is true you want to use three so that the right isn't evaluated when the left gets evaluated to true, with two dots it will only print out lines with USE in them and nothing in between.