hesco has asked for the wisdom of the Perl Monks concerning the following question:
Is giving me output like:sub parse_message { my $self = shift; my $source_email = shift; my $found_address = 0; my $address_line_count = 0; my($name_raw,$city_state_zip); my($date,$email,$name,$address1,$address2,$city,$state,$zip); my @lines = split($/,$$source_email); LINE: foreach my $line (@lines){ my $regex = '^Date:'; print STDERR $regex, "\n"; print STDERR $line,"\n"; if($line =~ m/$regex/){ # <--- line 98 $date = $line; $date =~ s/^Date: //; next LINE; } elsif($line =~ m/^From: /){ # . . . etc. } } return; }
Only repeated a dozen or more times for my test email I'm trying to parse.^Date: by my-mx.my-host.com (Postfix) with ESMTP id 93B8DD1D6E Use of uninitialized value in concatenation (.) or string at lib/path/ +to/mymodule.pm line 98.
Any and all ideas are appreciated.
-- Hugh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "uninitialized value in concatenation" is initialized and involves no concatenation that I can see.
by kyle (Abbot) on Jun 26, 2008 at 21:08 UTC | |
|
Re: "uninitialized value in concatenation" is initialized and involves no concatenation that I can see.
by moritz (Cardinal) on Jun 26, 2008 at 21:38 UTC | |
|
Re: "uninitialized value in concatenation" is initialized and involves no concatenation that I can see.
by ganeshk (Monk) on Jun 26, 2008 at 21:38 UTC | |
|
Re: "uninitialized value in concatenation" is initialized and involves no concatenation that I can see.
by Anonymous Monk on Jun 27, 2008 at 05:02 UTC |