Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: uc() every other letter

by stefp (Vicar)
on Sep 28, 2001 at 14:01 UTC ( [id://115394]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: uc() every other letter
in thread uc() every other letter

simpler:
$lcase =~ s/(\w)(\w)/\l$1\u$2/g

-- stefp

Replies are listed 'Best First'.
Re: Re: Re: uc() every other letter
by George_Sherston (Vicar) on Sep 28, 2001 at 17:06 UTC
    Smart! Every day I learn something. Hmm. And if it's short we want, one might go as far as s/(.)(.)/$1\u$2/g

    § George Sherston

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://115394]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.