Gordon Stewart wrote:

>   my $results  = $parser->results;
> 
> I'm using the above - as per a good website ive found :-
> 
> http://www.zeegee.com/code/perl/MIME-tools/docs/MIME/Parser/Results.pm.html
> 
> and
> 
> http://www.zeegee.com/code/perl/MIME-tools/docs/MIME/Parser.pm.html
> 
> 
> 
> However - When I display it (in the log fles)  it comes up as :-
> 
> 
> CONTENT -
> MIME::Parser::Results=HASH(0x85ffa88)
> MIME::Entity=HASH(0x85ff980)
> 
> 
> I've tried to dso a foreach loop on it - as a hash, & as an array - However 
> nothing works
> (gives me errors)...
> 
> Can anyone advise how you extract a hash, out of a $variable ?
> 
> G. <Taking long time to do simple task - because help files assume youre a 
> mind-reader >

That's what Data::Dumper was designed for:

use Data::Dumper; $Data::Dumper::Indent=1;
...
my $entity = $parser->parse_data($msg);
print Data::Dumper->Dump([$entity], [qw($entity)]);


-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to