perl-unicode

Re: Unicode aware module

1999-06-12 14:50:33
On Sat, Jun 12, 1999 at 02:01:46PM -0700, Russ Allbery wrote:
Gurusamy Sarathy <gsar(_at_)activestate(_dot_)com> writes:

It seems better to have both C<use utf8> and C<use locale> have a global
effect, and add a lexically scoped C<use byte> (or similar) that will
mark places that operate on binary data, and therefore turn off any
encoding related pragmata.  What do you think?

I think you should be worried about the security issues if you decide to
go this route.  People using regexes to clean data may suddenly discover
that they're getting more than they bargained for.  Actually using -T may
protect you against that, but not everyone cleaning data uses -T.

This is why this better be done by a different pragma, like

     use locale ':global';

or

     use glocale;

Ilya

<Prev in Thread] Current Thread [Next in Thread>