zakzebrowski has asked for the wisdom of the Perl Monks concerning the following question:
To test, we could grab stdout and see if it matches what we expect, but, since the code calls exit(0); it never returns to the test program. Gracias,use CGI qw(:standard); sub goAway{ my $message=shift; print header; print "<HTML><BODY><script language=javascript>alert($message);</scr +ipt>Sorry dude, hit back button</BODY></HTML>"; exit(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unique testing problem
by BrowserUk (Patriarch) on May 23, 2003 at 21:01 UTC | |
|
Re: Unique testing problem
by BazB (Priest) on May 23, 2003 at 20:04 UTC | |
|
Re: Unique testing problem
by adrianh (Chancellor) on May 23, 2003 at 23:30 UTC | |
|
Re: Unique testing problem
by little (Curate) on May 24, 2003 at 10:33 UTC | |
by adrianh (Chancellor) on May 24, 2003 at 11:19 UTC | |
|
Re: Unique testing problem
by zakzebrowski (Curate) on May 27, 2003 at 10:43 UTC |