Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Teaching Perl

by hardburn (Abbot)
on Apr 05, 2003 at 23:22 UTC ( #248354=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @got = pair( . . . );
    
  2. or download this
    my @got2 = map { [$_->[0],$_->[1],'meowmoo'] } @got;
    
  3. or download this
    my @got3 = map { &{$_->[1]}($_->[2]) ? $_->[0] : () } @got2;
    
  4. or download this
    &{$_->[1]}      # Get the subroutine referanced in $got2[$i][1]
        ($_->[2]) ? # Pass in the value of $got2[$i][2] ('meowmoo')
    ...
                    # with that subroutine.
    
        ()          # Otherwise, return undef
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-02-01 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    On my keyboard, Caps lock is:








    Results (4 votes), past polls