Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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/?

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://667861]
[Lady_Aleena]: marioroy, it is used in 24 other modules I wrote.
[Lady_Aleena]: GUH! I wrote a script better than I thought! 8)
[marioroy]: Wow. It's cool seeing Github coments "Update, Create Wild_hairs, Create alternate- PurpleOnGreen..., Then a location, Create Aleenia. Amazing, really. Thank you for sharing.
Discipulus when naming is clear and you know how to arrange the data, then coding it is a mere writing work

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-05-29 09:07 GMT
Find Nodes?
    Voting Booth?