Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Passing a reference from a subroutine.

by toolic (Bishop)
on Dec 07, 2012 at 16:42 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1007788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-24 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found