Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: subroutine good practise

by chromatic (Archbishop)
on Oct 29, 2012 at 20:02 UTC ( #1001415=note: print w/ replies, xml ) Need Help??


in reply to Re^2: subroutine good practise
in thread subroutine good practise

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.


Comment on Re^3: subroutine good practise

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-21 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (171 votes), past polls