# perl modules (assuming this may be expanded in the distant
# parrot future to look at other types of modules).
+use 5.006;
use strict;
-use vars qw($VERSION);
-$VERSION = '1.000014';
+use warnings;
+our $VERSION = '1.000014';
$VERSION = eval $VERSION;
use Carp qw/croak/;
\$$var
};
}};
-
- local $^W;
- # Try to get the $VERSION
- eval $eval;
- # some modules say $VERSION = $Foo::Bar::VERSION, but Foo::Bar isn't
- # installed, so we need to hunt in ./lib for it
- if ( $@ =~ /Can't locate/ && -d 'lib' ) {
- local @INC = ('lib',@INC);
+ {
+ no warnings;
+ # Try to get the $VERSION
eval $eval;
+ # some modules say $VERSION = $Foo::Bar::VERSION, but Foo::Bar isn't
+ # installed, so we need to hunt in ./lib for it
+ if ( $@ =~ /Can't locate/ && -d 'lib' ) {
+ local @INC = ('lib',@INC);
+ eval $eval;
+ }
}
warn "Error evaling version line '$eval' in $self->{filename}: $@\n"
if $@;