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

Will something like this do?

while (<DATA>) { if (/use/.../use/) { print; } } __DATA__ before use first second use last

-- Hofmator

Replies are listed 'Best First'.
Re: Re: Print area between two lines within a file.
by trantor (Chaplain) on Sep 06, 2001 at 22:05 UTC

    If (as I seem to understand from your post) you do not want to print the use lines, change the condition to

    /use/... /use/ and !/use/

    -- TMTOWTDI