Hello,

I recently created a module for encoding and decoding numerical arrays
to strings, in the form of "1,4,10-29", with duplicates being supported.
It works by optionally exporting a selection of functions including
encode_array, decode_array, validate_encoded_array, add_encoded_arrays,
subtract_encoded_arrays. Probably will add another function to remove
duplicates and allow greater flexibility with the format of the string
in the future. Tempted to possibly add more set logic - though don't
want to make it overlap Set::Scalar too much.

It's main uses would be for display and user entry. For instance in a
web application it could be used to specify a collection of ID numbers
in a shortened form, rather than having to select them all individually.

I was thinking of calling it Number::Collection - but wasn't sure if
that's appropriate or not.

I've already written the bulk of the module and a series of tests and
POD for it, which I can show if need be.

Best wishes

--
K. J. Cheetham MPhys (hons) AMInstP
Software Developer
Shadowcat Systems Ltd.
http://www.shadowcatsystems.co.uk/


Reply via email to