in reply to Re: How to Print Return Data from Subroutine
in thread How to Print Return Data from Subroutine
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. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to Print Return Data from Subroutine
by kyle (Abbot) on Aug 24, 2008 at 03:38 UTC | |
|
Re^3: How to Print Return Data from Subroutine
by betterworld (Curate) on Aug 24, 2008 at 10:58 UTC |