Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Having to specify $_

by Aristotle (Chancellor)
on Dec 09, 2002 at 09:36 UTC ( #218484=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub collect (&@) { collect( $_[0]->() || return @_[1 .. $#_] ) }
    
    my @results = collect { $sth->fetchrow_hashref };
    
  2. or download this
    sub collect (&) { ($_[0]->() || return), &collect; }
    
    my @results = collect { $sth->fetchrow_hashref };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-10-02 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (7 votes). Check out past polls.

    Notices?