Re: [squid-users] URL redirecting

From: Simon White <simon@dont-contact.us>
Date: Wed, 27 Mar 2002 15:00:40 +0000

27-Mar-02 at 20:54, stuart (stuart@catjes.com.au) wrote :
> #!/usr/bin/perl
> $|=1;
> while (<>) {
> s@http://nlisdev.catjes.com.au/@http://172.16.0.112:8008/@;
> print;
> }

Looks like your PERL script. I think you will have to escape some of those
slashes, no?

What happens if you do

$ echo "http://nlisdec.catjes.com.au/" | my.perl.pl

--
[Simon White. vim/mutt. simon@mtds.com. GIMPS:57.04% see www.mersenne.org]
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots.  So far, the Universe is winning.  -- Rich Cook
[Arbitrary quotes signature rotation, a simple bash script by Simon White]
Received on Wed Mar 27 2002 - 08:00:42 MST

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