Re: [Perl-unix-users] perl questions

2002-03-25 Thread Johnno
sweet works a treat... many thanks guys.. Johnno - Original Message - From: "Simon Oliver" <[EMAIL PROTECTED]> To: "Johnno" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 9:53 PM Subject: Re: [Perl-unix-users] perl qu

Re: [Perl-unix-users] perl questions

2002-03-25 Thread Simon Oliver
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

[Perl-unix-users] perl questions

2002-03-25 Thread Johnno
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 trick