gugod/App-perlbrew — pull request #207 by alecchen (2012-05-19 00:33:28+00:00)
Title: get correct perl version with basename when "do_install_archive"

When I tried to install the lastest perl from tarball

> perlbrew install /Users/alec/perl5/perlbrew/dists/perl-5.16.0-RC2.tar.gz

I got a wrong perl version number, like:

> dist_version = 5/perlbrew/dists/perl-5.16.0-RC2

I believe it was caused by the greedy RE when parsing tarball path.

Consider use `basename` to get the correct version number?