[EMAIL PROTECTED] wrote:
> I have a perl script that takes a user a password and an email address along
> with some other information. Problem is I get people created profile
> accounts with there email address prefixed by www. example:
> [EMAIL PROTECTED] what I want to do is remove the www. from the
> rest of the email and preserve the original email before the entry is
> writing to file. I want to make sure that we are not removing www if it is
> in the email address example: [EMAIL PROTECTED] and only a prepended www. !?
> How would you accomplish this and distinguish between the two?

$email =~ s/^www\.//i;

-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=162126130
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to