Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Changing the first word to uppercase

by bmann (Priest)
on Feb 14, 2008 at 01:18 UTC ( #667861=note: print w/ replies, xml ) Need Help??


in reply to Re: Changing the first word to uppercase
in thread Changing the first word to uppercase

What's the reason you chose s/.../uc($1)/e over s/.../\U$1/?


Comment on Re^2: Changing the first word to uppercase
Select or Download Code
Re^3: Changing the first word to uppercase
by ikegami (Pope) on Feb 14, 2008 at 18:24 UTC
    I only thought of \U afterwards. I'm not a big fan of it either. Code shouldn't look like a string literal. And unlike interpolation, it's not something we are trained to look for.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://667861]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2015-07-05 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls