On Fri, Mar 23, 2001 at 06:31:13PM -0500, Dan Sugalski wrote:
> >Err, perhaps I'm being dumb here - but surely $foo and $bar arent
> >typed strings, they're just numbers (or strings which match /^\d+$/) ???
> 
> D'oh! Too much blood in my caffeine stream. Yeah, I was thinking of ord.
> 
> chr will emit a character of the type appropriate to the current default 
> string context. The default context will probably be settable at compile 
> time, or be the platform native type, alterable somehow. Probably "use 
> blah;" but that's a language design issue. :)

Ah, this answers the puzzlement in the message I just sent. :>

So the results of ord are dependent on a global setting for "current
character set" or some such, not on the encoding of the string that
is passed to it?

                      - Damien

Reply via email to