[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] Pushing Array Refs Revisited (with solution)



Is this a bug or am I missing something? (very hopefully the latter...)

Given:
@a = (1,2,3);
@b = (4,5,6);
push @refs, [@a];
push @refs, [@b];

The statement
print "$#$refs\n"; results in -1 (huh?)
print "$#refs\n"; results in 1 (correct...no $ reference in the array ref...)


.........................................
"I don't make monkeys! I just train 'em!"
- Pee Wee Herman

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org