It'd be nice if you would have posted the error message. I assume you mean the error below. Trying this under 5.6.0, changing the quotes to keep the $ and the ! from my shell I get:
Perl v49.0.4294967295 required--this is only v5.6.0
And this isn't too hard to figure out.
The syntax "do(5.7)" essentially does the same thing as "require(5.7)" which causes perl to ensure that the version of the interpreter is at least 5.7. That's where the "required" message comes from. What about that number?
vstrings: they're buggy nasty little creatures that should have been squished when first proposed for Perl 5. Nontheless, we've got them and in certain corners of perl the implementation is less than stellar.
If we agree to that, where'd the number come from? Well, try this:
perl -e 'print ~1'
Okay, the string I get is 4294967294. That's part of the version string that prints out. What I suspect is that the !$var is getting 1-complemented into this string, do's trying to use that as a version number, and the vstring implementation has decided that it's really version 49.0.429... for display purposes. There's probably some odd conversion in there to get 49.0 out of that number.
update: The "49" comes from 1 being ASCII 49. The 429... from the 1's complement. The 0? The arrangement? Still a mystery. And since vstrings and do are involved, should probably remain that way. |