[VPM] array refs driving me nuts
abez
abez at abez.ca
Thu May 20 14:20:03 CDT 2004
$a = [ 1..10 ];
for (1..10) {
print $a->[$_];
print $$a[$_];
}
On Thu, 20 May 2004, Carl B. Constantine wrote:
> WARNING WILL ROBINSON --- NEWBIE QUESTION
>
> I'm trying to print out the value of an array reference. The reference
> is passed into a function as \@array.
>
> Now in that function I pass out $arrayRef to another function. It's in
> this final function I want to print out the value(s) of the array.
>
> I've tried @$arrayRef, $$arrayRef, $@$arrayRef, @$arrayRef[0] all to no
> avail.
>
> What did I miss?
>
>
--
abez ------------------------------------------
http://www.abez.ca/ Abram Hindle (abez at abez.ca)
------------------------------------------ abez
More information about the Victoria-pm
mailing list