Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 pondering the Monastery: (10)
As of 2014-08-20 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (116 votes), past polls