John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
I did it before with a taint-like trick, but I can't remember how exactly.
It seems to work if I use a taint-like trick, in that /^(.*)$/so; will give me $1 in character-orientation if this RE was issued while use utf8 was in effect, regardless of the orientation of the string that the RE was applied to.
Is that right, or just luck?
Is there a better/proper way to do it, yet?
It's maddening that features of Unicode support were not finished (e.g. I/O disciplines) and newer versions do more and more "character" (not byte) stuff, but the primitives needed to fill the gap ourselves are not exposed, for no good reason.
—John
Edit kudra, 2001-07-23 Corrected title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you impose
by wog (Curate) on Jul 22, 2001 at 09:48 UTC | |
by John M. Dlugosz (Monsignor) on Jul 22, 2001 at 10:21 UTC | |
|
title was truncated
by John M. Dlugosz (Monsignor) on Jul 22, 2001 at 10:23 UTC |