|
Posted by Ilya Zakharevich on November 13, 2007, 10:03 pm
Please log in for more thread options [A complimentary Cc of this posting was sent to
lvirden
> >
> > > When one particular type of command is being parsed, the error
> > > "Undefined subroutine &Policy::remove_request called at Server.pm line
> > > 10346.
> >
> > > In Policy.pm, a subroutine called remove_request does in fact exist.
> >
> > Can you *check* that it exists/defined at the beginning of execution (after
> > all the modules are loaded)? Can you explicitely check that it does
> > not exist/defined immediately before this unfortunate call?
>
> Hmm. I'm uncertain how to determine that code that is explicitly coded
> in a file exists or not.
"in a file" is absolutely irrelevant. To check whether a subroutine
foo::bar() is declared/defined, use
exists &foo::bar
defined &foo::bar
Hope this helps,
Ilya
|