Skip to content

Commit

Permalink
version wrapping, fixed for "our $VERSION=0.0.1"
Browse files Browse the repository at this point in the history
  • Loading branch information
Masahiro Nagano committed Feb 7, 2011
1 parent d0577f6 commit 91f4236
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/OrePAN/Archive.pm
Expand Up @@ -143,6 +143,9 @@ sub _parse_version($) {
local $^W = 0;
my $version = eval($eval); ## no critic
warn "Could not eval '$eval' in $parsefile: $@" if $@;
if ( ! ref($version) ) {
$version = eval { version->new($version) };
}
next if !$version;

push @pkgs, [$package, $version] if $package;
Expand Down

0 comments on commit 91f4236

Please sign in to comment.