David Manura wrote in perl.module-authors : >>>It could be slightly shortened to this: >>> >>> use Text::Balanced 1.95_1.96; # ok >>> >>>I also propose an important difference in how this is interpreted. >> >> >> So the way to solve the module versioning problem is to fundamentally >> change the way Perl parses numbers. Mmmhm. >> > > opps, as I haven't implemented or compiled this, that should be > > use Text::Balanced '1.95_1.96';
You could overload VERSION() to do this. (see the UNIVERSAL manpage). You could even write a base class that overloads VERSION and make Text::Balanced inherit from this. Ah, but as Text::Balanced is a core module this means that this base class should go in the core as well... I'm not opposed to this (but this is a subject for the perl 5 porters list.)