Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Reading "slices" out of a file at known start markers

by jwkrahn (Monsignor)
on Oct 03, 2008 at 14:29 UTC ( #715198=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( <FH> ) {
        if ( /^SOURCES/ && /\\$/ ) {
    ...
            }
        }
    
  2. or download this
    my $data;
    while ( <FH> ) {
    ...
        }
    print $data;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://715198]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-05-25 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?