# from David Golden
# on Tuesday 01 August 2006 09:03 am:

>I'd strongly suggest the former, since META.yml may be parsed by
> things that don't necessarily understand version objects and the "v"
> will make them numify as zero.  E.g.:
>
>   $ perl -e "$v = q{v2.61.129}; print 0+$v"
>   0

It's not correct without the v either, but at least you get warnings in 
either case.

  $ perl -we '$v = q{2.61.129}; print 0+$v'
  Argument "2.61.129" isn't numeric in addition (+) at -e line 1.
  2.61

Isn't the numeric form "2.610129" ?  If you're really concerned about 
non version-enabled code, seems like that would be the way to do it.

--Eric
-- 
hobgoblin n 1: (folklore) a small grotesque supernatural creature that
          makes trouble for human beings
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to