FAQ

On Tue, Apr 21, 2009 at 4:34 PM, Eric Wilhelm wrote:
$ perl5.8.8 -e 'BEGIN{package foo; $VERSION=v0.2.1_1;
$INC{"foo.pm"}=1;} use foo v0.2.10; print "yipeee!\n"'
yipeee!

$ perlv5.10.0 -e 'BEGIN{package foo; $VERSION=v0.2.1_1;
$INC{"foo.pm"}=1;} use foo v0.2.10; print "yipeee!\n"'
foo version v0.2.10 required--this is only version v0.2.1_1 at -e line 2.
BEGIN failed--compilation aborted at -e line 2.
Going to 'perldoc perldata':

Version Strings
Note: Version Strings (v-strings) have been deprecated. They will be
removed in some future release after Perl 5.8.1. The marginal benefits
of v-strings were greatly outweighed by the potential for Surprise and
Confusion.

Since Perl 5.8.1 was released in 2003, I think it's OK to not worry
about compatibility at this point.

J. Random Author: "I'm Surprised and Confused when I use v-strings!"
Weary Toolchain Maintainer: "Then don't do that!"

-- David

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 27 of 49 | next ›
Discussion Overview
groupmodule-build @
categoriesperl
postedApr 20, '09 at 9:59p
activeApr 28, '09 at 1:22a
posts49
users12
websitecpan.org...

People

Translate

site design / logo © 2018 Grokbase