Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ron Savage (5224)

Ron Savage
  (email not shown publicly)

Journal of Ron Savage (5224)

Saturday July 05, 2008
08:01 PM

Wondering what 'require 5.005_62;' actually means

[ #36857 ]

I've received a CPAN tester's report, saying:

PERL_DL_NONLAZY=1 /usr/local/bin/perl5.00505 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/pod.....skipped
                all skipped: Test::Pod 1.00 required for testing POD
t/test....Use of reserved word "our" is deprecated at /var/tmp/CPAN-build/DBIx-Admin-BackupRestore-1.11-Z51uFk/blib/lib/DBIx/Admin/Bac kupRestore.pm line 39.
Array found where operator expected
etc, etc.

Note the Perl used: 5.00505.

Shouldn't having the above require at the top of the module stopped that version of Perl trying to compile the file?

And what's the best way to preempt this problem?

Yours, confused.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • To catch that correctly, you should have the 'use perl' part in your Makefile.PL/Build.PL build file. The 'use part' in a module will throw errors as you saw, which will result in a CPAN Testers FAIL. Adding it to your build file, or specifically adding the perl version in your prerequisites, will stop any testing without any FAIL report being produced. It should produce an NA report, implying that the distribution is not meant to run with that version of Perl, which is what you intended :)