Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to extract Start .. End from multiline file

by svenXY (Deacon)
on Sep 28, 2005 at 18:04 UTC ( [id://495853]=note: print w/replies, xml ) Need Help??


in reply to How to extract Start .. End from multiline file

Hi,
but it works like that (it's a bit more like the OP code):
sub getInfoFromMultipleLine { #Openning file for reading open(IFH,"$InputFile") || die "Can't open file: $InputFile\n"; my $stag='START'; my $etag='END'; my $line; while(<IFH>) { print if /$stag/../$etag/; } }

Regards,
svenXY

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://495853]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found