How to Add a Feature to Perl 5
Yesterday's How to Patch Perl 5 explained the big picture of how to add a new feature to a dynamic language with a virtual machine. Now it's time to discuss the technical details.
|Will toke.c understand unicode? I once tried to get Ruby to understand "в‰Ў" as a bonafide operator (instead of just a method), but I couldn't make it work.|
|@Daniel, it does, though I believe you have to use the utf8 pragma to notify the parser to interpret characters with high bits set as UTF-8. I've just browsed toke.c and can't explain what's going on to my satisfaction. See lambda.pm on the CPAN, for example.|
|Хотите купить девочку,недорого.|