SPUG: geting the perl version

Andrew Sweger andrew at sweger.net
Wed Jan 25 11:46:16 PST 2006


On Wed, 25 Jan 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.

I think it would have been helpful to mention from the start that the
application in question was cfengine.

-- 
Andrew B. Sweger -- The great thing about multitasking is that several
                                things can go wrong at once.



More information about the spug-list mailing list