[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [Fun With Perl] What does this do?



mjd-list-fwp@plover.com writes:

> Some time ago I was surprised by this.  See if you can guess what it
> prints *before* you try it out.
> 
>         print "\L\uHELLO, WORLD\E.\n";

OK, I failed.

**************** SPOILERS AHEAD ****************


> If you're not surprised, you're either missing something important or
> you're a toke.c expert.  (Or you've seen it before.)

Is it an evaluation order thing?  Or am I _still_ missing something
important?

Interestingly (but hopefully not because I'm missing something),
"\L\UHELLO, WORLD\E.\n" is a syntax error.

-- 
Ariel Scolnicov        |"GCAAGAATTGAACTGTAG"            |ariels@compugen.co.il
Compugen Ltd.          |Tel: +972-2-6795059 (Jerusalem)	\  NEW IMPROVED URL!
72 Pinhas Rosen St.    |Tel: +972-3-7658520 (Main office)`--------------------
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555  http://3w.compugen.co.il/~ariels

==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org