windows/AS 5.8

After installing Mail::Field::Received using ppm and using the examples in the synopsis I got the following.

#!/usr/local/bin/perl use strict; use warnings; use Mail::Field; my $header = q{from tr909.mediaconsult.com (mediacons.tecc.co.uk [193. +128.6.132]) by host5.hostingcheck.com (8.9.3/8.9.3) with ESMTP id VAA +24164 for <adam@spiers.net>; Tue, 1 Feb 2000 21:57:18 -0500}; print qq{header: $header\n}; my $received = Mail::Field->new(q{Received}, $header); my $results = $received->parse_tree(); # hangs perl #if ($received->parse_ok){ # print qq{parse ok\n}; #} #else{ # print qq{parse not ok\n}; #} print qq{by -> domain: $results->{by}{domain}\n};
outputs
header: from tr909.mediaconsult.com (mediacons.tecc.co.uk [193.128.6.1 +32]) by host5.hostingcheck.com (8.9.3/8.9.3) with ESMTP id VAA24164 f +or <adam@spiers.net>; Tue, 1 Feb 2000 21:57:18 -0500 by -> domain: host5.hostingcheck.com
On my setup the $received->parse_ok method hung perl (see update) but the $received->parse_tree worked. I haven't had a chance to look at the source to identify why.

update: see broomduster's reply pointing out my typo that caused the error.


In reply to Re: Mail::Field Help Needed by wfsp
in thread Mail::Field Help Needed by gw1500se

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.