opensourcer has asked for the wisdom of the Perl Monks concerning the following question:
i want to how to display keys/values or what every using $hasref. assume i know only hashref and don't know anything about %hash can u please give the sample example plz#!/usr/bin/perl my %hash = {'hello' => 'world', 'says' => 'just another perl hacker'}; my $hashref = \%hash;
Retitled by davido from 'hashref'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to access contents of a reference to a hash.
by ambrus (Abbot) on Jan 31, 2005 at 12:36 UTC | |
by opensourcer (Monk) on Jan 31, 2005 at 12:47 UTC | |
by opensourcer (Monk) on Jan 31, 2005 at 12:52 UTC | |
by opensourcer (Monk) on Jan 31, 2005 at 13:04 UTC | |
|
Re: How to access contents of a reference to a hash.
by Corion (Patriarch) on Jan 31, 2005 at 12:31 UTC | |
|
Re: How to access contents of a reference to a hash.
by borisz (Canon) on Jan 31, 2005 at 12:33 UTC | |
|
Re: How to access contents of a reference to a hash.
by DaleCooper (Initiate) on Feb 01, 2005 at 13:53 UTC |