Re: expensive loops

2005-05-03 Thread John W. Krahn
Chris Knipe wrote: Hi, Hello, open (LOG, '<'.LogFile); for (;;) { while () { # Do stuff here } } } This is unfortunately very expensive on my CPU. Are there any better ways to go about this??? tail comes to mind, but I'd prefer to do this all in perl. perldoc -q tail John -- use P

RE: expensive loops

2005-05-02 Thread Charles K. Clarkson
Chris Knipe wrote: : open (LOG, '<'.LogFile); Is this a typo? You're working on SQUIDLOG below. LogFile is not in quotes. That should raise an error. : for (;;) { : while () { : # Do stuff here : } : } : } : : : This is unfortunately

Re: expensive loops

2005-05-02 Thread Chris Knipe
<[EMAIL PROTECTED]> To: "Chris Knipe" <[EMAIL PROTECTED]> Sent: Monday, May 02, 2005 7:27 PM Subject: Re: expensive loops On Mon, 2005-05-02 at 19:10 +0200, Chris Knipe wrote: Hi, open (LOG, '<'.LogFile); for (;;) { while () { # Do stuff here }

Re: expensive loops

2005-05-02 Thread Chris Knipe
..." - Douglas Adams, 'Hitchhiker's Guide to the Galaxy' - Original Message - From: "Joshua Colson" <[EMAIL PROTECTED]> To: "Chris Knipe" <[EMAIL PROTECTED]> Sent: Monday, May 02, 2005 7:18 PM Subject: Re: expensive loops On Mon, 2005-05-0

expensive loops

2005-05-02 Thread Chris Knipe
Hi, open (LOG, '<'.LogFile); for (;;) { while () { # Do stuff here } } } This is unfortunately very expensive on my CPU. Are there any better ways to go about this??? tail comes to mind, but I'd prefer to do this all in perl. -- Chris. I love deadlines. I especially love the whoo