in reply to Re: Best practice for handling subroutines that are conditionally loaded?
in thread Best practice for handling subroutines that are conditionally loaded?
My modules may have debug code sprinkled in:
package Some::Useful::Module; sub my_mod_func { my ($self) = @_ dd $self; }
So I want to conditionally load my debug code for this module.
$PM = "Perl Monk's";
$MC = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar Parson";
$nysus = $PM . ' ' . $MC;
Click here if you love Perl Monks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Best practice for handling subroutines that are conditionally loaded? (Updated)
by LanX (Saint) on Mar 08, 2024 at 15:19 UTC | |
by nysus (Parson) on Mar 08, 2024 at 15:28 UTC | |
by nysus (Parson) on Mar 08, 2024 at 16:03 UTC | |
Re^3: Best practice for handling subroutines that are conditionally loaded?
by jo37 (Curate) on Mar 08, 2024 at 16:44 UTC |