Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: More efficient dereferencing of a subroutine return

by LanX (Saint)
on Feb 18, 2013 at 02:40 UTC ( [id://1019264]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @ARRAY=subroutine();
    
    ...
     my @array=("one", "two"," three");
     return @array;
    }
    
  2. or download this
    return wantarray ? @array : \@array;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-16 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found