Subject: | Modifications to previously parsed addresses are persistent |
Date: | Fri, 1 Sep 2006 15:09:42 -0500 |
To: | bug-Email-Address [...] rt.cpan.org |
From: | "Ben Grimm" <ben [...] zaeon.com> |
When caching is enabled, and you modify a parsed address, the next
parse of that address returns that previously modified object.
----------------------------------------------
use Email::Address;
my $email = 'test@test.com';
my ($test) = Email::Address->parse($email);
print "$test\n";
$test->address('blah@blah.com');
print "$test\n";
my ($blah) = Email::Address->parse($email);
print "$blah\n";