leocharre has asked for the wisdom of the Perl Monks concerning the following question:

CGI::Application.. If I call an undefined method.. The app will act funny, but not report any errors! I have strict and warnings on, but no cigar.

What's up with that! Anybody know about this? Some way to enable being told you've done something stupid?

  • Comment on CGI::Application not reporting use of undefined method?

Replies are listed 'Best First'.
Re: CGI::Application not reporting use of undefined method?
by Herkum (Parson) on Apr 20, 2007 at 15:51 UTC
    CGI::Application catches RUNMODE errors by running it through an eval. Do,
    warn $@;

    To display errors that it is catching

Re: CGI::Application not reporting use of undefined method?
by derby (Abbot) on Apr 20, 2007 at 14:21 UTC

    funny in a haha sense (does it sing a few bars of Lydia the Tattooed Lady) or funny in a strange sense. Either way, you're going to have to show some code because in my CGI::Application apps, I definitely get errors when I have an undefined method.

    -derby