# from David Golden
# on Tuesday 28 July 2009 14:54:

>> Aside:  I just do:
>>
>>  our $VERSION = v1.2.3;
>
>But you shouldn't.  :-)  Unless you require Perl 5.10.

For some definitions of "shouldn't" perhaps depending on how much value 
you place on which ends of the trade-offs.  For everyday usage it's 
fine back to 5.6.2 at least.

  $ perlv5.6.2 -e 'use File::Fu v0.0.9'
  File::Fu v0.0.9 required--this is only v0.0.6 at -e line 1.
  BEGIN failed--compilation aborted at -e line 1.

Of course, if you're on pre-5.10 AND you want to print 
File::Fu->VERSION, you need to load version.pm first.  To me, that's 
fair (aka:  "you want features?  upgrade!") and it saves me from code 
clutter.

It's not ideal, but it weighs less than the other non-ideal options for 
multi-dotted versions.

--Eric
-- 
Speak softly and carry a big carrot.
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to