Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 studying the Monastery: (6)
As of 2021-03-01 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (28 votes). Check out past polls.

    Notices?