[Perl] Cutting text strings

Gaal Yahas gaal at forum2.org
Thu Feb 7 09:15:09 PST 2002


On Thu, Feb 07, 2002 at 07:09:25PM +0200, Yaron Golan wrote:
> What is the best way to take only the user name from an E-mail address?
> e.g.
>  
> $EMailAdress = "yaron.golan at SeabridgeNetworks.com";

($user = $EMailAdress) =~ s/\@.*//;

-- 
Gaal Yahas <gaal at forum2.org>
http://www.forum2.org/gaal/
http://www.livejournal.com/~gaal/



More information about the Perl mailing list