Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by repellent (Priest)
on Oct 03, 2008 at 08:47 UTC ( #715160=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<DATA>)
    {
    ...
        # decide whether to end print with newline
        print "\n" unless $cont;
    }
    
  2. or download this
    while (<DATA>)
    {
        s/\\\s*\n//;
        print;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://715160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-02-27 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?