Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by karlgoethebier (Vicar)
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: (8)
As of 2015-07-02 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (46 votes), past polls