perl-unicode

Re: Unicode aware module

1999-06-13 09:07:57
On Sun, Jun 13, 1999 at 04:21:03AM -0400, Ilya Zakharevich 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.

-- 
Since you're clearly mad as a mongoose, I'll bid you good-day.
       -- Edmund to Captain Rum : Black Adder III "Potato"

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