in reply to Re^2: Best practice for handling subroutines that are conditionally loaded?
in thread Best practice for handling subroutines that are conditionally loaded?
Having code all over the place calling "Schrödinger" functions doesn't strike me as a good design decision.
The next maintainer might lock you in a box with randomly activated poison. ;)
¹) something like BEGIN { *{$_} = sub {} for @imports }
NB: you can reuse @imports for your use if to keep it DRY
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Best practice for handling subroutines that are conditionally loaded?
by nysus (Parson) on Mar 08, 2024 at 15:28 UTC | |
Re^4: Best practice for handling subroutines that are conditionally loaded? (Updated)
by nysus (Parson) on Mar 08, 2024 at 16:03 UTC |