Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: subroutine good practiseby chromatic (Archbishop) |
on Oct 29, 2012 at 20:02 UTC ( [id://1001415]=note: print w/replies, xml ) | Need Help?? |
If you must encode this within the module itself, I prefer using something like the if pragma. My preference is to pass in the dependency when using the module from the calling code, as it sounds like the calling code is most responsible for deciding which dependency to use.
In Section
Seekers of Perl Wisdom
|
|