perl-unicode

Re: Unicode aware module

1999-06-13 10:54:58
On Sun, Jun 13, 1999 at 11:01:07AM -0500, Graham Barr wrote:
Please tell me whether

   sub foo { return $1 if s/\btypedef\s+int\s+(\w+)// }

is operating on bytes or characters.  Now substitute the words there
by other words and repeat it again.

I would say characters, but this is not a good example. I would say
that substr or split are better examples where the operator is
used for both character and byte operations.

I did not want an example about which Sarathy could say that it is
just a tiny snippet, and his argument works for functional pieces of
code.

Ilya

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