I thought there would be "hello", but no: it says "Hello", (I wanted to say so) as if I typedprint "\L\uhElLo"; # Hello
But this changement doesn't work with lc and ucfirst:print "\u\LhElLo"; # Hello
I do love perl!print lc("\uhElLo"); # hello print lc(ucfirst("hElLo")); # hello print ucfirst(lc("hElLo")); # Hello
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.32.32"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cleverness - \L\u in strings
by BUU (Prior) on May 25, 2002 at 20:15 UTC | |
by thelenm (Vicar) on May 31, 2002 at 19:04 UTC |