On Sat, Jul 25, 2009 at 11:05 AM, John
Peacock<john.peac...@havurah-software.org> 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

Reply via email to