CC: | bug-Email-Simple [...] rt.cpan.org |
Subject: | Re: t/perl-minver.t requires Test::MinimumVersion unconditionally |
Date: | Fri, 13 Jul 2007 17:17:55 -0400 |
To: | Adriano Ferreira <a.r.ferreira [...] gmail.com> |
From: | Ricardo SIGNES <rjbs [...] cpan.org> |
* Adriano Ferreira <a.r.ferreira@gmail.com> [2007-07-13T16:42:31]
Show quoted text
> Your latest Email-Simple distribution
> (http://search.cpan.org/src/RJBS/Email-Simple-2.000/) is failing due
> to "t/perl-minver.t".
Thanks! I'm an idiot.
Show quoted text> When you used "eval BLOCK" rather than "eval STRING", the use
> statement executes in a BEGIN at compile time rather than waiting for
> failing at runtime when you could check $@. So the solution is just
> falling back to the awful "eval STRING" in this case.
Actually, I prefer to do this:
eval {
require Test::MinimumVersion;
Test::MinimumVersion->VERSION(0.003);
Test::MinimumVersion->import;
};
I was just sloppy, when I first added this! It was the first thing ever to use
Test::MinimumVersion.
--
rjbs