On 9/30/06, Ron Smith <[EMAIL PROTECTED]> wrote:
I get the error: "Undefined subroutine &Main::BadData called at line 42" when executing the following '.cgi' script, with nothing entered in all of the text fields. I'm unfamiliar with this error. Could someone give me an explaination behind this error?
It means that on or near line 42 in the program, there is a call to a subroutine, but it's not a subroutine that's been defined anywhere in the program. To fix the problem, you could write a subroutine called BadData; or simply replace the subroutine call with the actual code to run when the program encounters bad data. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>