Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Referencing subroutine in not-yet-loaded module

by vsespb (Chaplain)
on Nov 05, 2015 at 14:48 UTC ( [id://1146992]=note: print w/replies, xml ) Need Help??


in reply to Re: Referencing subroutine in not-yet-loaded module
in thread Referencing subroutine in not-yet-loaded module

You said it works .. but you are filing a bug report?
What works is references to subroutine in not-loaded packages. Bug report against Class::Load, which refuses to load packages after such referencing (thanks that I still have "require" working).
is this good practice or is it a bug?
Exactly. I think those are more probable alternatives.
Referencing a not yet loaded module in order to trigger loading on demand might be a great practice for saving on load time and memory requirements
I am not asking about such references in general, only about \&NotYetLoadedModule::mysub(); vs sub { &NotYetLoadedModule::mysub };

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1146992]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-29 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found