Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-08-16 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (166 votes). Check out past polls.

    Notices?