Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: weird perl verion and/or OS problem with newlines (tye)

by tye (Sage)
on Sep 25, 2003 at 16:02 UTC ( [id://294180]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: weird perl verion and/or OS problem with newlines
in thread weird perl verion and/or OS problem with newlines

<IN>; # skip "--start of file--" while( <IN> ) { if( $_ eq "#:lav\n" ) { local $/= "#:eof\n"; my $block= <IN>; # ... process $block here ... } elsif( $_ eq /^--end of file--/ ) { warn "Unexpected line: $_"; } }

Updated: Thanks to graff for noting that I wrote $\ when I meant $/.

                - tye

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-05-28 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found