vsespb has asked for the wisdom of the Perl Monks concerning the following question:
or it's a bug, and only possible way to get reference to such subroutine is:my $subref = \&NotYetLoadedModule::mysub();
I am asking because after 1st example something is broken, and Class::Load::load_class refuses to load NotYetLoadedModule (this differs from require behaviour and thus I filed a bug report)my $subref = sub { &NotYetLoadedModule::mysub };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Referencing subroutine in not-yet-loaded module (ancient)
by tye (Sage) on Nov 05, 2015 at 15:55 UTC | |
Re: Referencing subroutine in not-yet-loaded module
by GotToBTru (Prior) on Nov 05, 2015 at 13:42 UTC | |
by vsespb (Chaplain) on Nov 05, 2015 at 14:48 UTC | |
Re: Referencing subroutine in not-yet-loaded module
by Anonymous Monk on Nov 05, 2015 at 10:32 UTC | |
by vsespb (Chaplain) on Nov 05, 2015 at 10:35 UTC | |
Re: Referencing subroutine in not-yet-loaded module
by Anonymous Monk on Nov 06, 2015 at 21:36 UTC |