On 11/09/2011 02:56 PM, Aristotle Pagaltzis wrote: > * Johan Vromans<jvromans@squirrel.nl> [2011-11-09 14:20]: >> David Golden<xdaveg@gmail.com> writes: >>> but I continue to have concerns with where we seem to be headed with >>> "use v5.XX". >> >> Restrict it to one single occurrence which must be the first line in >> a program unit and many problems will dissappear. >> >> If you want a piece of code to behave according to a specific perl >> version, put it in a separate module. > > This inches fairly close to what I proposed, but I think can be made > more sane still. Namely, the main program should get to control the > runtime semantics, for *all* code loaded. > > If you ask for 5.24 in the main program, then all loaded code should run > with 5.24 semantics – i.e. e.g. string operations across the entire code > base will conform to the Unicode version shipped with 5.24, etc. > > But individual program units can ask to be *parsed* according to rules > as close to e.g. 5.16 as the perl in question can emulate. > > Regards, Let me just say that I consider it untenable that the 5.24 Perl would have 'use 5.16' mean that you get the Unicode version that shipped with 5.16.Thread Previous | Thread Next