-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Moin, On Friday 30 March 2007 20:09:29 Juerd Waalboer wrote: > Marc Lehmann skribis 2007-03-30 14:24 (+0200): > > In fact, I teach a lot of people about unicode in perl. > > At the German Perl Workshop, I saw your unicode presentation. I don't > know if this is a good representation for your teaching of unicode, but > I noticed that you used utf8::encode and utf8::decode, not the similar > functions from Encode.pm that are more commonly used and advised. These > utf8:: in-place encode/decode functions are efficient, but using them > means that the same SV changes from byte string to text sting or vice > versa, which makes the code hard to follow, and any attempt to use > hungarian notation in code examples impossible. However, if you have 200Mbyte of ASCII string, it is more efficient to *not* copy the data around just to find out that, yes, all of it is 7bit :) But otherwise, I basically agree with you. All the best, Tels - -- Signed on Fri Mar 30 22:31:28 2007 with key 0x93B84C15. View my photo gallery: http://bloodgate.com/photos PGP key on http://bloodgate.com/tels.asc or per email. "Retsina?" - "Ja, Papa?" - "Schach Matt." - "Is gut, Papa." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iQEVAwUBRg2QGXcLPEOTuEwVAQIy+Qf8DETRmN30yEFJSgd2yO8kezpOiT6yErsB c2EUa0XJ1nl+pEQ1givBZ4Y/Ci7QlfeyuDFCBL30Ld1JKPBqP2p6AJgwoOAKk2VU AQcnTUloimSqzanuzs8+v5S7APUDQbBuEpaxliepHuMAJvfxFjN81A8nWcXDWNUO XG/YSLiDvoZoj8RE5rpE5DQ7hIuoyxq/h6fBlIwNB7ATl3XOPC8Ji8rKCIglzW88 DNHiovC0Mo5V6VNE2tYfKlkxZBm1qtOjenUurgUjdh4NoivyxAg9CCvbFoWDE6f4 zeOio94e9JEf5e4ZlK+plwqFSonpVbRO7Fdk1EcxrjG5sQaaBNzNxQ== =a8Qq -----END PGP SIGNATURE-----Thread Previous | Thread Next