Re: [squid-users] Reverse proxy and redirect program

From: Jack <[email protected]>
Date: Sat, 1 Mar 2003 17:31:19 +0530

Hello Henrik,

Thanks, its working now

Regards,
Jack

> On Saturday 01 March 2003 07.45, Jack wrote:
> > Hello Henrik,
> >
> > I changed the script as you said as
> >
> > #!/usr/bin/perl
> >
> > while ($url = <>) {
> > @list = split("/", $url);
> > $newurl="http:/";
> > for($i=3;$i<@list;$i++) {
> > $newurl=$newurl."/".$list[$i];
> > }
> > print "$newurl";
> > }
>
>
> Why did you remove the BEGIN { $|= 1 }; line? This is required.. (can
> be simplified to $|=1; when not using -p but the BEGIN construct
> also works just fine..)
>
> Regards
> Henrik

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Received on Sat Mar 01 2003 - 04:41:52 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:52 MST