Brian Grossman <[EMAIL PROTECTED]> wrote:
> % perl -IMailTools-1.59 -MMail::Address -le 'print $Mail::Address::VERSION; print
> Mail::Address->new("<>")->address'
> 1.59
>
That's correct, because the address is empty, while the
"phrase" is "<>".
> % perl -IMailTools-1.59 -MMail::Address -le 'print $Mail::Address::VERSION; print
> Mail::Address->new("","<>")->address'
> 1.59
> <>
There you're setting the address to "<>", which isn't right.
The angle brackets aren't part of the address. Try putting in
"abc" as the phrase part, and you'll get "abc <<>>". I
wouldn't say your way is any more correct than Matt's.
Unfortunately, it looks like Mail::Address doesn't use angle
brackets in the format when the address is empty, even if
there's a phrase. So it's not clear what the proper way to
represent an empty address is.
--
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC