Re: version-0.77 and You - Part 2

David Golden <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.module-build,gmane.comp.lang.perl.perl5.porters
Message-ID <[email protected]>
On Sat, Jul 25, 2009 at 11:05 AM, John
Peacock<[email protected]> wrote:
> Using bare v-strings (as opposed to quoted strings) is fraught with
> inconsistencies between various versions of Perl.  version.pm generally

The other issue is that it's easy for people to misuse by mistake.

E.g.

# In Foo.pm
our $VERSION = 1.2.3;

# In program1.pl
use Foo 1.2;         # FAIL: actually means use Foo v1.200.0;

# In program2.pl
use Foo v1.2;        # OK: i.e. v1.2.0

On the other hand, if Foo.pm has "our $VERSION = v1.2.3"  then it's a
bit more likely that a user would say "v1.2".

It's all subtle, but generally, the idea is to discourage people from
having bare v-strings entirely so that all v-strings look similar.

-- David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.