Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
If I want to reference an item in a hashref like this:
$hash_ref->{'sender'}
How do I build the data structure?
Can I just say,
my $hash_ref; $hash_ref->{'sender'}='address'; $hash_ref->{'date'}='date'; etc
I assume this is just refering to an array of hashrefs right?
@{$q_mail}
Your help greatly appreciated as always.
Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Building Hashrefs
by pbeckingham (Parson) on Jul 23, 2004 at 14:37 UTC | |
|
Re: Building Hashrefs
by Fletch (Bishop) on Jul 23, 2004 at 14:38 UTC | |
by ccn (Vicar) on Jul 23, 2004 at 14:40 UTC | |
|
Re: Building Hashrefs
by deibyz (Hermit) on Jul 23, 2004 at 14:42 UTC | |
by pbeckingham (Parson) on Jul 23, 2004 at 14:54 UTC | |
by deibyz (Hermit) on Jul 23, 2004 at 15:06 UTC |