Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: make subroutine that takes expression as implicit block as first arg

by kennethk (Abbot)
on Aug 13, 2010 at 19:46 UTC ( [id://854995]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub mygrep (&@) {
        my $code = shift;
        my @result;
    ...
        }
        @result;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-03-28 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found