Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by karlgoethebier (Prior)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-06-23 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (533 votes). Check out past polls.