This might not be the most efficient method but it should work...

$URL = $ENV{'HTTP_POST'};
$URL =~ s/www\.//;
$URL = lc($URL);

--
  Simon Oliver

Johnno wrote:
> 
> Hello,
> 
> What i am wanting to do is the following...
> 
> $URL = $ENV{'HTTP_HOST'} ;
> 
> and then is removes www. from $URL if the www. is there and then convert to
> lowercase..
> 
> But i am not too sure how to go about it... I can do the lowercase find just
> the removing of the www. seems to be a little tricky...
> 
> Thanks,
>                 Johnno
> 
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to