The current parser treats 1-5 as a bare-word (i.e. a NAME) which results
in a String when evaluated. That is deliberately changed in the future
parser, NAME can not start with a digit, and can not contain a
hyphen/minus. If you in the current parser write 1 - 5 (with spaces),
you get the same result as in the future parser (because NAME cannot
contain a space).
The source should be changed to '1-5' (as you did) and this will work in
both versions. In the future the correct evaluation of [1-5], is [-4]
(an array with a negative integer of value 4).
In general, it is important to use the correct notation to get string
values, if something looks like a number, then it will be used as a
number. If you want a string quote the value.
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/