[squid-users] perl redirector problem

From: Andrew Nelson <andrew__nelson@dont-contact.us>
Date: Mon, 02 Dec 2002 10:16:05 +1100

Hi,

I'm having trouble writing a redirector for
squid. I'm using the basic perl code in the
squid FAQ:

        #!/usr/local/bin/perl
        $|=1;
        while (<>) {
                s@http://fromhost.com@http://tohost.org@;
                print;
        }

I'm wondering why, when I use the $| (presumably to
prevent buffering), can I NOT write to files using the
standard open(FILE,">>logfile.txt"); method? I want
to be able to log what my redirector does! How can I
write to files?

thanks,
Andrew.

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
Received on Sun Dec 01 2002 - 16:28:04 MST

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