in reply to Re^2: How to Print Return Data from Subroutine
in thread How to Print Return Data from Subroutine
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; }
|
|---|