Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Parsing file and joining content into string

by LanX (Chancellor)
on Jan 15, 2013 at 18:33 UTC ( #1013439=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     if ( $line =~ /^# \d+ \d+\.\d+$/   ..   $line =~ /^END$/ ) {
         $chunk.=$line; 
     } else {  
         process($chunk) if $chunk;
         $chunk='':
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013439]
help
Chatterbox?
Discipulus is a lazy sysadmin but not lazy as marto coworkers..
[marto]: the sysadmins are actually a different 3rd party company
[Discipulus]: oh yes, outsurcing.. i remember: not as lazy as marto outsourced ones..

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2017-01-24 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (204 votes). Check out past polls.