gw1500se has asked for the wisdom of the Perl Monks concerning the following question:
The keys themselves are hashrefs. So if I wanted to extract the value of the key 'domain' which is part of the key 'by' from the parse_tree, how would I write the correct syntax and when do I use '%' vs. '$'? Thanks.# $string contains the 'Received' header my $received = Mail::Field->new('Received',$string); my $parse_tree = $received->parse_tree(); my $by = $parse_tree{'by'}; my $domain = $by{'domain'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Brief Hash Tutorial
by dreadpiratepeter (Priest) on Aug 31, 2008 at 01:59 UTC | |
by cosmicperl (Chaplain) on Aug 31, 2008 at 02:36 UTC | |
by dreadpiratepeter (Priest) on Aug 31, 2008 at 13:30 UTC | |
by gw1500se (Beadle) on Aug 31, 2008 at 02:40 UTC | |
by JadeNB (Chaplain) on Sep 01, 2008 at 01:19 UTC | |
by gw1500se (Beadle) on Aug 31, 2008 at 02:37 UTC | |
by wfsp (Abbot) on Aug 31, 2008 at 10:02 UTC | |
|
Re: Brief Hash Tutorial
by toolic (Bishop) on Aug 31, 2008 at 02:04 UTC |