gw1500se has asked for the wisdom of the Perl Monks concerning the following question:
The error says that "$by" is initialized. Presumably that means 'parse()' is not returning what the documentation says it should. Indeed, when I use Data::Dumper, it seems all I get is the key 'TEXT' and the value is simply the original string. Thanks.my $received=Mail::Field->new('Received',$string); my $parse_tree=$received->parse(); my $by=$parse_tree->{'by'}; print($by->{'domain'}."\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::Field Help Needed
by toolic (Bishop) on Aug 31, 2008 at 17:56 UTC | |
|
Re: Mail::Field Help Needed
by wfsp (Abbot) on Sep 01, 2008 at 08:33 UTC | |
by broomduster (Priest) on Sep 01, 2008 at 13:12 UTC | |
by wfsp (Abbot) on Sep 01, 2008 at 13:20 UTC | |
by gw1500se (Beadle) on Sep 01, 2008 at 19:45 UTC | |
|
Re: Mail::Field Help Needed
by apl (Monsignor) on Aug 31, 2008 at 20:33 UTC | |
by gw1500se (Beadle) on Aug 31, 2008 at 21:40 UTC | |
by apl (Monsignor) on Sep 01, 2008 at 01:05 UTC | |
|
Re: Mail::Field Help Needed
by Krambambuli (Curate) on Sep 01, 2008 at 08:14 UTC | |
by gw1500se (Beadle) on Sep 01, 2008 at 19:41 UTC |