Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Context aware functions - best practices?

by sauoq (Abbot)
on Jan 15, 2003 at 06:20 UTC ( #227066=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo {
        my @r = (42) x $_[0];
    ...
    @a:   42 42 42
    $s:   3
    $sl:  42
    
  2. or download this
    my ($x) = foo(1);
    
  3. or download this
    my $x = (foo(1))[0];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://227066]
help
Chatterbox?
[erix]: average between 1 and 20
[erix]: ( median troll aka 'the bird' )

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-06-21 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (118 votes). Check out past polls.

    Notices?