SPUG: geting the perl version
John W. Krahn
krahnj at telus.net
Wed Jan 25 14:46:13 PST 2006
Atom Powers wrote:
> I want to do this: `/usr/bin/perl -V:version | /usr/bin/cut -d "'" -f
> 2` without using pipes or quotes; is that possible? (for some reason
> my application isn't executing this correctly)
>
> That is; I am looking for a simple way to get just the version number
> wihout any padding. Something like "5.8.7" or "5.0.6" or whatever.
$ perl -e'printf "%vd\n", $^V'
5.8.6
John
--
use Perl;
program
fulfillment
More information about the spug-list
mailing list