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