in reply to Re: Best practice for handling subroutines that are conditionally loaded?
in thread Best practice for handling subroutines that are conditionally loaded?
Just write an import (Don't necessarily need Exporter for that) routine which conditionally decides what to export at compile time.
If you don't want to wire the ENV flag into the original module, just pass it's state as a flag while use -ing.
I'm reluctant to provide code since your requirements are "drifting". (And you're friends with better qualified AI anyway)
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
---|