develooper Front page | perl.perl5.porters | Postings from May 2010

Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemanticsfor \s, \w

Thread Previous | Thread Next
Steffen Mueller
May 20, 2010 00:30
Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemanticsfor \s, \w
Message ID:
Hi all,

Zefram wrote:
> Eric Brine wrote:
>> Since L<feature> is used to introduce features that are not backwards
>> compatible, using C<< -E'...' >> instead of C<< -e'use 5.014; ...' >> may
>> result in broken code when Perl is upgraded.
> I thought that was implicit, and very obviously so, in the definition
> of -E.  It's the inherent tradeoff, the price one pays for having such
> a short shorthand.  But I wouldn't object to it being made explicit.

I agree with Zefram. This backwards-incompatible behavior is the *whole 
point* of -E.

FWIW, I think documenting the current equivalent of -E (i.e. -e 'use 
5.0XX;') is at best adding noise to the documentation. The perl core may 
have many problems but certainly, none of those is *lack* of docs.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About