Perl: the Markov chain saw | |
PerlMonks |
use_ok with version numberby Narveson (Chaplain) |
on Nov 25, 2009 at 22:19 UTC ( [id://809447]=perlquestion: print w/replies, xml ) | Need Help?? |
Narveson has asked for the wisdom of the Perl Monks concerning the following question: I like starting a test script with use_ok 'Acme::Stuff';What if I want to make sure I'm testing a newer version? The client code will say use Acme::Stuff '1.1.2';but I can't seem to say use_ok 'Acme::Stuff' '1.1.2';I can write a second test, something like cmp_ok $Acme::Stuff::VERSION, '>=', '1.1.2';Anybody have better advice? Update (Thanksgiving Day in U.S.A.): Thanks for the replies, all of which are helpful.
Back to
Seekers of Perl Wisdom
|
|