BarMeister has asked for the wisdom of the Perl Monks concerning the following question:
Here is some psuedo code of what I am doing:
Anyone know what I am doing wrong here? I feel slightly retarded after looking at this for an hour....sub foo { my @array; return \@array; } my $a_ref = foo(); print scalar(@$a_ref); #this always seems to be 1...
Thanks in advance :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: references to empty arrays
by friedo (Prior) on Feb 14, 2006 at 19:38 UTC | |
by BarMeister (Beadle) on Feb 14, 2006 at 19:50 UTC | |
|
Re: references to empty arrays
by brian_d_foy (Abbot) on Feb 14, 2006 at 20:45 UTC | |
by ayrnieu (Beadle) on Feb 15, 2006 at 07:16 UTC | |
|
Re: references to empty arrays
by davidrw (Prior) on Feb 14, 2006 at 19:41 UTC |