ukndoit has asked for the wisdom of the Perl Monks concerning the following question:
However that is done way before we need the address for the link. So, we are doing this:$__emailAddressIs = "My Name <myemail@mydomain.com>";
there must be an easier way to get that email address out of that string, right?my $_sendTo = $__emailAddressIs; my $_trash; ($_trash,$_sendTo) = split /\</, $_sendTo, 2; ($_sendTo,$_trash) = split /\>/, $_sendTo, 2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: stripping out email address from string
by jbt (Chaplain) on Aug 23, 2009 at 04:11 UTC | |
by dsheroh (Monsignor) on Aug 23, 2009 at 10:43 UTC | |
by JavaFan (Canon) on Aug 23, 2009 at 16:39 UTC | |
by ukndoit (Sexton) on Aug 23, 2009 at 04:21 UTC | |
|
Re: stripping out email address from string
by Anonymous Monk on Aug 23, 2009 at 04:11 UTC |