in reply to Re: (tye)Re: win32 shebang
in thread win32 shebang
Since when does Perl just ignore things? (: It gets parsed as "5.6" . "0". Yes, it happens to produce the somewhat correct result of telling you that you need to use something like version "5.60", which could certainly be confusing. Sorry, I don't have 5.005 handy to get the exact message and 5.004 doesn't support the "use VERSION" (nor "require VERSION") syntax.
I also think it is important to make people aware that they need to use "old-style" version numbers in the one part of their code that is only meant to be useful in old versions of Perl. The very similar "use v5.6.0;" is going to produce an even less obvious error message.
But I also realize that it is more important to put the line in than it is to get it exactly right. At least having an error message that points to that particular line will be more helpful than the other likely failure modes. (Besides, just as far back as 5.004, there is no great way to automatically tell the user that they need to upgrade.)
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re2: win32 shebang
by John M. Dlugosz (Monsignor) on Aug 09, 2001 at 06:39 UTC |