Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Array refs

by RL (Monk)
on May 04, 2007 at 17:11 UTC ( [id://613619]=note: print w/replies, xml ) Need Help??


in reply to Array refs

sub func1{ .... ... return ($a,$b); }

Now I want a one liner so that I can use the arrayrefs returned from that method

Am I right to assume $a and $b are arrayrefs already?

If yes then something like the following may work for you

my ($aryref_a, $aryref_b) = func1();

RL

Log In?
Username:
Password:

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

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

    No recent polls found