Acme-No

 view release on metacpan or  search on metacpan

No.pm  view on Meta::CPAN


now, one might think that, since 

 use mod_perl 1.27;

makes sure that mod_perl is at least version 1.27,

 no mod_perl 1.27;

should mean that 1.27 is too high - the manpage says use() and
no() are opposites, and that looks like opposite behavior to 
me.  however...

 $ perl -e 'use mod_perl 2.0'
 mod_perl version 2 required--this is only version 1.2701 at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.

 $ perl -e 'no mod_perl 2.0'
 mod_perl version 2 required--this is only version 1.2701 at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.

so, no() and use() do the exact same thing here - hmmm... looks like a 
bug in perl core...

enter Acme::No

Acme::No makes no() work the way I want it to.

  $ perl -MAcme::No -e'no v5.9.0; print "ok\n"'
  Perl v5.009 too high--version less than v5.009 required at -e line 0

  $ perl -MAcme::No -e'no v5.9.1; print "ok\n"'

README  view on Meta::CPAN


now, one might think that, since 

 use mod_perl 1.27;

makes sure that mod_perl is at least version 1.27,

 no mod_perl 1.27;

should mean that 1.27 is too high - the manpage says use() and
no() are opposites, and that looks like opposite behavior to 
me.  however...

 $ perl -e 'use mod_perl 2.0'
 mod_perl version 2 required--this is only version 1.2701 at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.

 $ perl -e 'no mod_perl 2.0'
 mod_perl version 2 required--this is only version 1.2701 at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.

so, no() and use() do the exact same thing here - hmmm... looks like a 
bug in perl core...

enter Acme::No

Acme::No makes no() work the way I want it to.

  $ perl -MAcme::No -e'no v5.9.0; print "ok\n"'
  Perl v5.009 too high--version less than v5.009 required at -e line 0

  $ perl -MAcme::No -e'no v5.9.1; print "ok\n"'



( run in 0.272 second using v1.01-cache-2.11-cpan-64827b87656 )