Re: [squid-users] perl redirector problem

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 10 Dec 2002 17:58:37 +0100

Works here.

Regards
Henrik

mån 2002-12-02 klockan 00.16 skrev Andrew Nelson:
> 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 Tue Dec 10 2002 - 09:58:41 MST

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