Re: Checking for infinite loops

2007-01-11 Thread hOURS
Dave Gray [EMAIL PROTECTED] wrote: On 1/8/07, hOURS wrote: Hi everyone, Jay offered me the following code to help with something. I don't undertand it, but tried to use it anyway to see if it would work. The computer told me there was a syntax error in the area I highlighted in

Re: Checking for infinite loops

2007-01-11 Thread Jay Savage
On 1/11/07, hOURS [EMAIL PROTECTED] wrote: [snip] Some modifications I made: I changed the names of the programs being tested to fit what I had. I reduced the alarm time from one hour down to a few seconds. I included statements to print out error messages. (The original if and

Re: Checking for infinite loops

2007-01-11 Thread hOURS
Jay Savage [EMAIL PROTECTED] wrote: On 1/11/07, hOURS wrote: [snip] Some modifications I made: I changed the names of the programs being tested to fit what I had. I reduced the alarm time from one hour down to a few seconds. I included statements to print out error messages. (The

Re: Checking for infinite loops

2007-01-11 Thread Jay Savage
On 1/11/07, hOURS [EMAIL PROTECTED] wrote: Jay Savage [EMAIL PROTECTED] wrote: On 1/11/07, hOURS wrote: [snip] Thanks Jay. I can't believe I didn't think of that myself. I put in the 1;'s and the or die. It's not that the requires are failing - I get the same results. I added

Re: Checking for infinite loops

2007-01-11 Thread hOURS
Jay Savage [EMAIL PROTECTED] wrote: On 1/11/07, hOURS wrote: Jay Savage wrote: On 1/11/07, hOURS wrote: [snip] Thanks Jay. I can't believe I didn't think of that myself. I put in the 1;'s and the or die. It's not that the requires are failing - I get the same results. I added

Re: Checking for infinite loops

2007-01-11 Thread Jay Savage
On 1/11/07, hOURS [EMAIL PROTECTED] wrote: Jay Savage [EMAIL PROTECTED] wrote: On 1/11/07, hOURS wrote: Jay Savage wrote: On 1/11/07, hOURS wrote: [snip] Thanks Jay. I can't believe I didn't think of that myself. I put in the 1;'s and the or die. It's not that the requires are

Re: Checking for infinite loops

2007-01-09 Thread hOURS
Thanks. I did change the longRunningModule part. The syntax error was in the line: if ($@) { apparently at the end of the line, which I believe usually means opening brackets without closing brackets or vice versa. Fred Jay Savage [EMAIL PROTECTED] wrote: On 1/8/07, hOURS wrote:

Re: Checking for infinite loops

2007-01-09 Thread Dave Gray
On 1/8/07, hOURS [EMAIL PROTECTED] wrote: Hi everyone, Jay offered me the following code to help with something. I don't undertand it, but tried to use it anyway to see if it would work. The computer told me there was a syntax error in the area I highlighted in color. I can't find it

Re: Checking for infinite loops

2007-01-08 Thread hOURS
Hi everyone, Jay offered me the following code to help with something. I don't undertand it, but tried to use it anyway to see if it would work. The computer told me there was a syntax error in the area I highlighted in color. I can't find it - maybe that's because I don't understand

Re: Checking for infinite loops

2007-01-08 Thread Jay Savage
On 1/8/07, hOURS [EMAIL PROTECTED] wrote: Hi everyone, Jay offered me the following code to help with something. I don't undertand it, but tried to use it anyway to see if it would work. The computer told me there was a syntax error in the area I highlighted in color. I can't find it

Re: Checking for infinite loops

2006-12-07 Thread Mumia W.
On 12/06/2006 11:51 PM, hOURS wrote: Thanks for trying, but this right here is the heart of the matter. I'd be using alarm to time a certain thing. It seems to me, any explanation of how to do that, be it plain English or sample code has to incorporate that thing.

Re: Checking for infinite loops

2006-12-07 Thread D. Bolliger
hOURS am Donnerstag, 7. Dezember 2006 06:51: Thanks for trying, but this right here is the heart of the matter. I’d be using alarm to time a certain thing. It seems to me, any explanation of how to do that, be it plain English or sample code has to incorporate that thing. My program

Re: Re: Checking for infinite loops

2006-12-07 Thread Tom Phoenix
On 12/6/06, hOURS [EMAIL PROTECTED] wrote: My program in a nutshell goes: Blah blah blah the beginning part require someprogramthatmayhaveaninfiniteloop.pl Blah blah blah the ending part You must have a good reason for using a buggy library without first fixing its

Re: Checking for infinite loops

2006-12-07 Thread Jay Savage
On 12/7/06, hOURS [EMAIL PROTECTED] wrote: Thanks for trying, but this right here is the heart of the matter. I'd be using alarm to time a certain thing. It seems to me, any explanation of how to do that, be it plain English or sample code has to incorporate that thing.

Re: Checking for infinite loops

2006-12-06 Thread hOURS
Thanks for trying, but this right here is the heart of the matter. I’d be using alarm to time a certain thing. It seems to me, any explanation of how to do that, be it plain English or sample code has to incorporate that thing. My program in a nutshell goes: Blah

Re: Checking for infinite loops

2006-12-03 Thread D. Bolliger
hOURS am Sonntag, 3. Dezember 2006 03:25: D. Bolliger [EMAIL PROTECTED] wrote: hOURS am Donnerstag, 30. November 2006 21:09: Jen Spinney wrote: On 11/20/06, hOURS wrote: Recently I posed a question on here regarding a program I have that runs other programs (through require

Re: Checking for infinite loops

2006-12-03 Thread Bill Jones
On 12/2/06, hOURS [EMAIL PROTECTED] wrote: But I think we can ignore all those questions, because I don't see a need to work with this example. I'm just looking for someone to tell me how alarm works. A few sentences in English will be fine. No code really need be written. Old multi

Re: Checking for infinite loops

2006-12-02 Thread hOURS
Thanks, I suppose I understand that code example from 'perldoc -f alarm' a little better. But much of it remains mysterious. e.g. the very first thing within eval. The only brackets I've ever seen with variables are [] for list elements. What's going on with {}? And what a strange thing

Re: Checking for infinite loops

2006-11-30 Thread hOURS
Jen Spinney [EMAIL PROTECTED] wrote: On 11/20/06, hOURS wrote: Recently I posed a question on here regarding a program I have that runs other programs (through require statements and what not). My problem was that the programs getting run might have syntax errors and I wanted to skip

Re: Checking for infinite loops

2006-11-30 Thread D. Bolliger
hOURS am Donnerstag, 30. November 2006 21:09: Jen Spinney [EMAIL PROTECTED] wrote: On 11/20/06, hOURS wrote: Recently I posed a question on here regarding a program I have that runs other programs (through require statements and what not). My problem was that the programs getting run