Or... you could just do it the old way, at least on earlier perls... 
Do you really need the more recent perls?  If so you limit the
usability of your module on older environments.

    package Graphics::Fig;
    ...
    use vars qw( $VERSION ... );
    ...
    $VERSION = 1.0;

Lincoln

On Fri, 2017-06-09 at 14:55 -0700, Karen Etheridge wrote:
> er, rather, 5.12.  And a ticket has already been reported for it -- h
> ttps://rt.cpan.org/Ticket/Display.html?id=122021
> 
> On Fri, Jun 9, 2017 at 2:54 PM, Karen Etheridge <[email protected]>
> wrote:
> > 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 <[email protected]> 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/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