|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: Gracefully Downgrading Behaviorby gaal (Parson) |
| on May 10, 2007 at 09:15 UTC ( #614580=note: print w/ replies, xml ) | Need Help?? |
|
(Here be plugs.) When there are several providers of the functionality that have compatible APIs, you can use Best. With modules that just export functions, you simply replace the use line:
There's knobs you can use to rewire stuff as in your is_deeply example; and a which function is provided so you can get the name of the module that was actually loaded to write factories with.
If you're out for less syntax, you might like to try the possibly too-magical Class::TransparentFactory.
In Section
Meditations
|
|
||||||||||||||||||||||||