Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re (tilly) 1: DWIM Part Nineteen: Unary Operators in Void Context

by TheDamian (Vicar)
on Dec 30, 2001 at 03:22 UTC ( [id://135175]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub apply (&@) {
            my $func  = shift;
    ...
        apply {uc} $var1, $var2;
        apply {abs} @values;
        # etc.
    
  2. or download this
        sub apply (&func, *@args) {
            $_ = func($_) foreach @args;
        }
    
  3. or download this
        sub apply (&func, *@args) {
            each(@args) = func(each @args);
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found