Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: How do I write subs that take bare blocks as args?

by Aristotle (Chancellor)
on Jun 28, 2002 at 16:03 UTC ( #178047=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if(not grep { $_->price > 1000 } @product_list) {
        # do stuff
    }
    
  2. or download this
    my @p = (0,2,4,5,2,5,7,7);
    print "1: none\n" if not grep { $_ > 1000 } @p;
    push @p, 1002;
    ...
    
    =output
    1: none
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-12-27 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (176 votes), past polls