Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: uc() every other letter

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


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 21: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2025-05-22 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.