Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Array refs

by j1n3l0 (Friar)
on May 04, 2007 at 16:34 UTC ( [id://613613]=note: print w/replies, xml ) Need Help??


in reply to Array refs

I would return an arrayref instead
sub func1 { # do some stuff return [$a, $b]; }
Then you can do stuff like
$ref = fuc1(); #or @ref = @{func1()};
Hope that helps ;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-19 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found