Perl: the Markov chain saw | |
PerlMonks |
Re: MongoDB Perl Wrapperby Corion (Patriarch) |
on Sep 07, 2017 at 08:37 UTC ( [id://1198832]=note: print w/replies, xml ) | Need Help?? |
Code-wise, I would make ->_set_connection respect the ->{port} and ->{host} arguments. Also, I found a cascade of arguments makes testing and overriding things much easier in such routines. I would take the URL from the passed arguments, or from $self, in that order:
In Section
Seekers of Perl Wisdom
|
|