in reply to Re^2: How to Print Return Data from Subroutine
in thread How to Print Return Data from Subroutine
Cheers,use strict; use warnings; my %h = (foo => 1, bar => 2, foobar => 3); my $hashref = \%h; print $hashref, "\n"; # prints HASH(0x.......); for (keys(%$hashref)) { print "$_ => $hashref->{$_}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to Print Return Data from Subroutine
by Anonymous Monk on Aug 24, 2008 at 04:46 UTC | |
by planetscape (Chancellor) on Aug 24, 2008 at 09:28 UTC |