Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Passing a reference from a subroutine.

by toolic (Bishop)
on Dec 07, 2012 at 16:42 UTC ( #1007788=note: print w/replies, xml ) Need Help??


in reply to Passing a reference from a subroutine.

This works:
use warnings; use strict; use Data::Dumper; sub get_data { my @AoA; @AoA = ( [(1, 2)], [(3, 4)], ); #print Dumper(\@AoA); return \@AoA; } my $alldata = get_data(); print Dumper($alldata); __END__ $VAR1 = [ [ 1, 2 ], [ 3, 4 ] ];

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007788]
help
Chatterbox?
jkva dusts the floor
[karlgoethebier]: Totally OT but my pleasure: Next week i'll have my first archery lesson.
[Corion]: Hi jkva!
[Corion]: karlgoethevier: Oooh, that sounds interesting! ;)
[karlgoethebier]: btw, good morning
[Happy-the-monk]: karlgoethebier: have fun! Did some archery at the age of 14 or so.
[karlgoethebier]: Corion: It is, indeed.
[Happy-the-monk]: even more OT: received the complete series of Robin Hood/Robin of Sherwood 1984 on used dvds this morning :)
[Happy-the-monk]: (purely coincidental)
[jkva]: Corion Hey there :)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-10-20 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?