Re: Problems with threads and XML::RPC::Server

2007-10-20 Thread Jenda Krynicky
From: "Richard Hartmann" <[EMAIL PROTECTED]> > for lack of a general list, I decided to send this to this list. I am > not sure if it is not well outside the scope of this list, if so, I > apologize. I think you might have a better chance of a solution on perlmonks.org > My smallish test case is

Re: squid log cleaning not fully executed

2007-10-20 Thread John W. Krahn
Aruna Goke wrote: > > I put up a small script to delete old logs and at the same time rotating > the logs. on my squid log directory ( I can use logrorate and unlink the > logs, but I choose to test my ability to do that) > > however, with my code below, I can see delete the old logs, however, th

Re: ftp in ascii mode

2007-10-20 Thread Matthew Whipple
Gunnar Hjalmarsson wrote: > Gunnar Hjalmarsson wrote: >> Net::FTP uses ascii mode by default, which means that the line >> endings were converted also when you transferred the file back to >> your local machine. Consequently, those files should not be identical. > > Correction: They _should_ be ide

Re: Can I modify the contents of a file, without creating a new one?

2007-10-20 Thread Dr.Ruud
"John W. Krahn" schreef: > PeiYu Zeng: >> Can I modify the contents of a file, without creating a new one? > > Yes, but only if you do not change the length of the data (i.e. fixed > length records.) Well, for $some (@content_definitions), you can also append of course. :) -- Affijn, Ruud "Ge

Re: Can I modify the contents of a file, without creating a new one?

2007-10-20 Thread John W. Krahn
PeiYu Zeng wrote: > Hello, Hello, > Can I modify the contents of a file, without creating a new one? Yes, but only if you do not change the length of the data (i.e. fixed length records.) > Now, the method that I modify the contents of a file is: > open( READHANDLE , "sourceFile" ); > o

squid log cleaning not fully executed

2007-10-20 Thread Aruna Goke
I put up a small script to delete old logs and at the same time rotating the logs. on my squid log directory ( I can use logrorate and unlink the logs, but I choose to test my ability to do that) however, with my code below, I can see delete the old logs, however, the output of the log the s

Problems with threads and XML::RPC::Server

2007-10-20 Thread Richard Hartmann
Hi all, for lack of a general list, I decided to send this to this list. I am not sure if it is not well outside the scope of this list, if so, I apologize. My smallish test case is as follows (beware potential GMail linebreaks..): #!/usr/bin/perl use strict; use warnings; use threads; use RP