Skip to content

Commit

Permalink
Amended the regex to take into account blead git-built perls, thanks …
Browse files Browse the repository at this point in the history
…to Andreas
  • Loading branch information
bingos committed Sep 21, 2010
1 parent a735080 commit 3a045e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = App-SmokeBox-PerlVersion
version = 0.04
version = 0.06
author = Chris Williams <chris@bingosnet.co.uk>
license = Perl_5
copyright_holder = Chris Williams
Expand Down
2 changes: 1 addition & 1 deletion lib/App/SmokeBox/PerlVersion.pm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sub _start {
sub _stdout {
my ($self,$in,$pid) = @_[OBJECT,ARG0,ARG1];
# This is perl, v5.6.2 built for i386-netbsd-thread-multi-64int
return unless my ($vers,$arch) = $in =~ /^This is perl.+v([0-9\.]+).+built for\s+(\S+)$/;
return unless my ($vers,$arch) = $in =~ /^This is perl.+?v([0-9\.]+).+?built for\s+(\S+)$/;
$self->{version} = $vers;
$self->{archname} = $arch;
return;
Expand Down

0 comments on commit 3a045e9

Please sign in to comment.