Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: help with this snippet: if($.==2||$&&&!$s++)

by toolic (Bishop)
on Nov 30, 2011 at 22:00 UTC ( #940952=note: print w/ replies, xml ) Need Help??


in reply to help with this snippet: if($.==2||$&&&!$s++)

Tip #6 from the Basic debugging checklist... B::Deparse

while (defined($_ = <ARGV>)) { print $_ if $. == 2 or $& and not $s++; $. = 0 if /^-+$/; }


Comment on Re: help with this snippet: if($.==2||$&&&!$s++)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2015-08-04 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (61 votes), past polls