Re: Looping with Unicode

2003-03-07 Thread Jarkko Hietaniemi
I verified the intent from Larry, and ".." is definitely (and will be, at least in Perl 5) only ever meant for doing the expansion on the "A".."Z", "a".."z" (and "0..9") ranges. -- Jarkko Hietaniemi <[EMAIL PROTECTED]> http://www.iki.fi/jhi/ "There is this special biologist word we use for 'stabl

Re: Looping with Unicode

2003-03-07 Thread Daniel Yacob
>> Can something be set in the script to make it work as expected? >> >> An observation; UTF-8 keys in a hash can be defined without >> quotation: >> >> %myHash =( >>=> "this", >>=> "that", >> : : : >> ); >> >> but later the keys must be referenced in quoted form. T

Re: Looping with Unicode

2003-03-07 Thread Jarkko Hietaniemi
> logical semantics for this would be rather ... odd. What should > "a"..chr(0x100) generate, for example? The above would be strange because there are non-\w characters in that range, so it's kind of like the range numerically but with holes. Even stranger would be "a"..chr(0x100).chr(0x100) I

Re: Looping with Unicode

2003-03-06 Thread Jarkko Hietaniemi
On Thu, Mar 06, 2003 at 05:30:37PM -0500, Daniel Yacob wrote: > Greetings, > > I seem to remember in the past, possibly with a development > version of Perl, that unicode chars in utf-8 worked fine as > loop iterators, as per: > > foreach (..) { do something } > > where and are single charact

Looping with Unicode

2003-03-06 Thread Daniel Yacob
Greetings, I seem to remember in the past, possibly with a development version of Perl, that unicode chars in utf-8 worked fine as loop iterators, as per: foreach (..) { do something } where and are single characters in utf-8. With Perl 5.8.0 the loop cycles only once. Is this a bug or by d