Subject: | $VERSION error message |
Date: | Fri, 27 Jun 2014 17:31:24 -0400 |
To: | bug-Module-Which [...] rt.cpan.org |
From: | James Hall <jimhallsun [...] gmail.com> |
Hi,
Hopefully have a straight forward error:
jhall@jimwin8:~$ which_pm Text::CSV_XS
Variable "$VERSION" is not imported at /export/code/perl5/bin/which_pm line 16.
Global symbol "$VERSION" requires explicit package name at /export/code/perl5/bin/which_pm line 16.
BEGIN not safe after errors--compilation aborted at /export/code/perl5/bin/which_pm line 115.
I have:
Module-Which-0.03
As an aside: the code has a bunch of ^M on the end when I vim the file. Maybe dos2unix needs to be run on the file to have it formatted in a neutral way?
Here is my env:
jhall@jimwin8:~$ uname -a
SunOS jimwin8 5.11 11.2 i86pc i386 i86pc
jhall@jimwin8:~$ perl -v
This is perl 5, version 12, subversion 5 (v5.12.5) built for i86pc-solaris-64int
(with 7 registered patches, see perl -V for more detail)
I don’t think this is an environment issue, just need to declare / import $VERSION?
JIM