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

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

by karlgoethebier (Priest)
on Dec 01, 2012 at 19:57 UTC ( #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
Node Status?
node history
Node Type: note [id://1006632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-29 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls