Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Return value from function

by lyklev (Pilgrim)
on Jul 12, 2007 at 21:26 UTC ( [id://626321]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my @values = f(...);        # simple read,
                                   # @values is a copy
    
  2. or download this
       my %hash = f(...);          # hash is also a copy
       my $value = $hash{'value'};
    
  3. or download this
       my (@v1, @v2) = f(...);
    
  4. or download this
       sub f {
          (...)
    ...
                                    # notation cumbersome
                                    # and avoid references
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-16 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found