in reply to Finding the ActivePerl Version
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re: Finding the ActivePerl Version
by doran (Deacon) on Nov 20, 2001 at 23:54 UTC |