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

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



Mark-Jason Dominus puzzled us with:
> 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";

I would have said "hello, world.\n" before testing it. How odd.

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

Do those modifiers get sorted into a sensible order before being applied, or is
it some weird generic modification with flags for uc, ucfirst, lc and lcfirst?

-- 
	Peter Haworth	pmh@edison.ioppublishing.com
"That's about all there is to it. Now you just need to go off and buy a book
 about object-oriented design methodology, and bang your forehead with it for 
 the next six months or so."		-- Perl 5 "perlobj" man page


==== 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