[Catalyst] Catalyst calendar/2005/10, TIMTOWTDI, determining the perl version

Karl Gaissmaier karl.gaissmaier at uni-ulm.de
Tue Jan 24 18:18:03 CET 2006


Hi,

just stumbled over the following *nix line:

perlversion=`perl -v | grep 'built for' | awk '{print $4}' | sed -e 's/v//;'`

TIMTOWTDI

perlversion=`perl -e 'printf("%vd", $^V)'`

Thanks for the calendar
	Charly
-- 
Karl Gaissmaier       KIZ/Infrastructure, University of Ulm, Germany
Email:karl.gaissmaier at uni-ulm.de           Service Group Network
Tel.: ++49 731 50-22499



More information about the Catalyst mailing list