Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: About a piece of code

by tweetiepooh (Hermit)
on Aug 05, 2009 at 11:02 UTC ( [id://786051]=note: print w/replies, xml ) Need Help??


in reply to About a piece of code

Simply put is skips blank lines.

m/^\n/ is a regular expression for start of line followed by new line.

and next means go the the next item in input if regular expression is true.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found