gnosti has asked for the wisdom of the Perl Monks concerning the following question:
Hello August Monks and Monkesses!
I've got an app with a subroutine, init_gui(), that is called through an object:
$ui->init_gui
When I add the line:
use subs 'init_gui';
to the Graphical package where init_gui() is defined, my app dies with undefined subroutine &...Graphical::init_gui called in line 895.
A test using an identical object model does not exhibit this behavior, nor does 'use subs' cause every method to fail.
What parts of perl or of my app, should I be examining to better understand what is going on? AFAIK there is no source filtering where I can lay the blame.
Thanks for reading.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: 'use subs' causes method to vanish
by zwon (Abbot) on Feb 05, 2009 at 20:43 UTC | |
by gnosti (Chaplain) on Feb 05, 2009 at 20:55 UTC | |
by chromatic (Archbishop) on Feb 05, 2009 at 22:51 UTC | |
by gnosti (Chaplain) on Feb 05, 2009 at 23:56 UTC | |
by chromatic (Archbishop) on Feb 06, 2009 at 02:31 UTC | |
| |
Re: 'use subs' causes method to vanish
by linuxer (Curate) on Feb 05, 2009 at 20:42 UTC |
Back to
Seekers of Perl Wisdom