[Bloomington-normal-pm] Another way to get readable version from $^V
Phil Winans
pawinan at ilstu.edu
Thu Nov 7 11:19:34 CST 2002
Found this in perldoc perldelta:
Also, "sprintf" and "printf" support the Perl-specific
format flag "%v" to print ordinals of characters in
arbitrary strings:
printf "v%vd", $^V; # prints current version, such as
"v5.5.650"
This is probably faster than the method I previously posted.
--
Phil Winans - pawinan at ilstu.edu
Network Engineer
Telecommunications and Network Support Services
Illinois State University
More information about the Bloomington-normal-pm
mailing list