in reply to Re^5: Don't use 5.6.N (why guess?)
in thread Don't use 5.6.N

I'm curious. You're recommending "BEGIN { require 5.006; }" instead of "use 5.006;". Aren't they identical?

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^7: Don't use 5.6.N (why guess?)
by DrHyde (Prior) on Oct 18, 2007 at 10:35 UTC

    Yes, they are the same.

    The only thing you need to be careful of is to say 5.006 instead of 5.6.0. The former will spit out an error message that makes sense to testing tools, the later in a syntax error:

    $ perl-5.005_05/bin/perl -e 'use 5.6.0;' syntax error at -e line 1, near "use 5.6" Execution of -e aborted due to compilation errors.
    $ perl-5.005_05/bin/perl -e 'use 5.006;' Perl 5.006 required--this is only version 5.00505, stopped at -e line +1. BEGIN failed--compilation aborted at -e line 1.