Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Perl 6 is too complex

by enoch (Chaplain)
on Mar 14, 2003 at 17:45 UTC ( [id://243130]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @squares := apply { $_ * $_ } 2..5;
    
    ...
    {
        return func($head), apply(&func <== @tail);
    }
    
  2. or download this
    my @squares = apply(sub{$_[0] * $_[0]}, \(2..5));
    
    ...
        my($sub, $refArray) = @_;
        return map {$sub->($_)} @$refArray;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found