Re: My long script

2012-09-16 Thread Rob Dixon
On 16/09/2012 05:03, Robert Wohlfarth wrote: On Sat, Sep 15, 2012 at 4:46 PM, wrote: The user clicks on a button ("A" or "B"), which fires back a string that reawakens the script and shows it what answer the user chose. The script inspects the cooky-jar to determine the state of the script,

Re: My long script

2012-09-16 Thread Paul Anderson
On 2012-09-15, at 11:25 PM, jmrhide-p...@yahoo.com wrote: > It would be WONDERFUL to get an email every time it glitched! Does anybody > have > a > > > sub written for that? Just bear in mind that you need to add logic to the while(1) loops to determine that they are running too long. If it

Re: My long script

2012-09-15 Thread Jim Gibson
On Sep 15, 2012, at 8:25 PM, jmrhide-p...@yahoo.com wrote: > It would be WONDERFUL to get an email every time it glitched! Does anybody > have > a sub written for that? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands,

Re: My long script

2012-09-15 Thread Robert Wohlfarth
On Sat, Sep 15, 2012 at 4:46 PM, wrote: > The user clicks on a button ("A" or "B"), which fires back a string that > reawakens the script and shows it what answer the user chose. The script > inspects the cooky-jar to determine the state of the script, compares the > user's selection with its

Re: My long script

2012-09-15 Thread jmrhide-perl
t_die_handler(\&handle_errors); 14. } It would be WONDERFUL to get an email every time it glitched! Does anybody have a sub written for that? John M Rathbun MD From: Jim Gibson To: Perl Beginners Sent: Sat, September 15, 2012 9:00:35

Re: My long script

2012-09-15 Thread Jim Gibson
Please use the list for postings. That way, everybody gets to see your post. I am responding via the list. On Sep 15, 2012, at 4:49 PM, jmrhide-p...@yahoo.com wrote: > OK, interesting supposition that needs to be tested. I could just replace > every while (1) with a for (1..10) as insurance, bu

Re: My long script

2012-09-15 Thread Jim Gibson
On Sep 15, 2012, at 2:46 PM, jmrhide-p...@yahoo.com wrote: > As requested, I ran perltidy on my script to see if I could make it easier > for > somebody else to read. Perhaps a little explanation of how it works would > also > be helpful: [explanation snipped] > To avoid repetition of pr