print $ref->{c}; # This gave me 55 which is what I want. foreach my $i ($ref->@a) { print $i; # I want to see the content of the array, this + gave me an error. } foreach my $i ($ref->%b} { print $i; # I want to see the content of the hash. }
In reply to Re^2: How to Print Return Data from Subroutine
by Anonymous Monk
in thread How to Print Return Data from Subroutine
by bichonfrise74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |