in reply to Re: Cleverness - \L\u in strings
in thread Cleverness - \L\u in strings
(Somewhat off-topic)... I could swear that I've read an anecdote before that went something like this: Someone expected "\L\uhElLo" to produce "hello", not "Hello", because he knew that they were implemented internally with ucfirst and lc. He expected the behavior to be the same as lc(ucfirst("hElLo")). But he was pleasantly surprised to find that it actually produced "Hello". When he mentioned this to Larry, Larry just smiled (and maybe said something pithy). Has anyone else heard this anecdote? I've spent probably an hour looking through my Perl books and doing Google searches, trying to find it, and it's driving me nuts.
-- Mike
--
just,my${.02}
|
|---|