in reply to Re^2: How to access contents of a reference to a hash.
in thread How to access contents of a reference to a hash.
Thanks a lot guys#!/usr/bin/perl use warnings; use diagnostics; my %hash = ('hello' => 'world', 'says' => 'just another perl hacker'); my $hashref = \%hash; foreach my $k (keys %$hashref) { print "$k -> '$hashref->{$k}'\n " }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to access contents of a reference to a hash.
by opensourcer (Monk) on Jan 31, 2005 at 13:04 UTC |