RE: [Perl-unix-users] LWP::Simple returns nothing

2002-03-25 Thread Thomas_M
> Hi! > > I tested the script in another UNIX server and it runs fine > so i think everything is fine. > [script snipped] > > This script in other UNIX server returned the yahoo! page and > 'end of output' text at the end of the page. > > I dont understand. Please let me know if you know what

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 questions > This might not be the most effici

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