foreach my $i ($ref->@a) { print $i; # I want to see the content of the array, this + gave me an error. }
I can't tell if this is what you mean or not:
foreach my $i ( @{$ref}{@a} ) { print $i; }
Or maybe it's simpler than that:
foreach my $i ( @a ) { print $i; }
In reply to Re^3: How to Print Return Data from Subroutine
by kyle
in thread How to Print Return Data from Subroutine
by bichonfrise74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |