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
Sorry about that. I hit reply and didn't notice it had your address in there rather than the list's. Since I've never seen this program hang, I want to be notified any time it hangs, no matter who the user is. I found two options in the perldoc for CGI::Carp -- 1.BEGIN { 2.

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

My Long Script (2)

2012-09-15 Thread jmrhide-perl
# PRINT RESPONSE: $c_topic = $cgi->cookie( -name=> 'topic', -value => $topic, -expires => '+1d', -path=> '/' ); $c_score = $cgi->cookie( -name=> 'score', -value => $score, -expires => '+1d', -path

My Long Script (1)

2012-09-15 Thread jmrhide-perl
#!/usr/local/bin/perl # use warnings; # use strict; # use diagnostics; use CGI; my $cgi = new CGI; my ( $topic, $score, $lastnum, $answer, $anum, $bnum, $cnum, $dnum, $enum,$smarts, $playlevel, $c_topic, $c_smarts, $c_playlevel, $c_score, $

My long script

2012-09-15 Thread jmrhide-perl
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: Tutorial.cgi is triggered by a user who wishes to enlarge his/her vocabulary of technical terms in a certain field. The

Re: File/string formatter script?

2012-09-15 Thread Rob Dixon
On 15/09/2012 02:52, newbie01 perl wrote: > Hi all, > > I have a config file that contains some text as below: > > server01:/u01/app/oracle/admin/db01/adump :*.dmp,5 > :compress :/bin/gzip > server01:/u01/app/oracle/admin/db04/adump :*.aud,5 >

Re: File/string formatter script?

2012-09-15 Thread Shlomi Fish
Hi newbie01, On Sat, 15 Sep 2012 13:52:53 +1200 newbie01 perl wrote: > Hi all, > > I have a config file that contains some text as below: > > server01:/u01/app/oracle/admin/db01/adump :*.dmp,5 >:compress :/bin/gzip > server01:/u01/app/oracle/admin/db04/