package <packagename> <version> is syntax that was introduced in perl 5.14.
That distribution should have the minimum perl declared in its metadata, so
you don't get it pulled into your 5.10.1 smoker.

On Thu, Jun 8, 2017 at 11:51 PM, Scott Guthridge via cpan-testers-discuss <
cpan-testers-discuss@perl.org> wrote:

> All tests in a newly submitted module pass for me, but are failing in the
> CPAN test report.  It looks like something doesn't like the package line:
>
> PERL_DL_NONLAZY=1 "/bbbike/perl-5.10.1/bin/perl5.10.1" 
> "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef 
> *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>
> #   Failed test 'use Graphics::Fig;'
> #   at t/advanced.t line 15.
> #     Tried to use 'Graphics::Fig'.#     Error:  syntax error at 
> /tmpfs/.cpan-build-cpansand/2017060606 
> <(201)%20706-0606>/Graphics-Fig-1.00-14/blib/lib/Graphics/Fig.pm line 17, 
> near "package Graphics::Fig 1.00"
> # Compilation failed in require at t/advanced.t line 15.
> # BEGIN failed--compilation aborted at t/advanced.t line 15.
>
> Actual code is:
>
> #
> # XFig Drawing Library
> #
> # [more comments removed]
> #
> package Graphics::Fig 1.00;
> use strict;
> use warnings;
> use Carp;
> use File::Temp qw/ tempfile /;
> ...
>
>
> Suggestions?
>
> Thanks,
> Scott
>
>
>

Reply via email to