AW: [squid-users] URL redirecting

From: Klier Rainer <Rainer.Klier@dont-contact.us>
Date: Wed, 27 Mar 2002 16:23:40 +0100

> 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

It prints http://nlisdec.catjes.com.au/

How should it know that you meant to type
nlisdev instead of nlisdec ? :)
The script is ok. You don't have to escape
the slashes with the substitutionoperator
when you use anything else as a delimiter
@ in this case.

Rainer
Received on Wed Mar 27 2002 - 08:23:44 MST

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