Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Parsing file and joining content into string

by LanX (Canon)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-10-25 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls