Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How can i debug compound map/grep statements just using print?

by karlgoethebier (Abbot)
on Dec 01, 2012 at 19:57 UTC ( [id://1006632]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Karls-Mac-mini:~ karl $ perl -e 'print 2*60*60;'
    7200
    
  2. or download this
    perl -e 'print scalar( grep { $_ == 1 } (0,0,0) );' # nothing found
    0
    
  3. or download this
    perl -e 'print scalar( grep { $_ == 1 } (1,0,0) );' # one found
    1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found