cgraf has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl use strict; use warnings; my $class = undef; eval { $class->isa('MyClass'); };
however, if I execute the script via a web-browser with the script, the following earning goes to the error_log:
Can't call method "isa" on an undefined value at /home/chrisgrafham/ho +spital/cgi-bin/testEval.pl line 13.
I can not suppress the error log, even when turing warnings off (no warnings;)
Can't call method "isa" on an undefined value at /home/fred/..../cgi-b +in/testEval.pl line 13
Any ideas?
Edit: g0n - code tags and formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: no warnings no working while running cgi script under Apache::Registry
by shmem (Chancellor) on Nov 02, 2007 at 16:40 UTC |