my $version = $];
Update: Ooh... I should have read your post more closely :) After quite a bit of searching, the only solution I could find was the backticks (though this doesn't mean a solution is not available.)
perl -e "($version) = (`perl -v` =~ /build (\d+)/);print $version"
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Finding the ActivePerl Version
by Ovid
in thread Finding the ActivePerl Version
by doran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |