Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Regex Typecase

by merlyn (Sage)
on Aug 14, 2007 at 01:26 UTC ( #632358=note: print w/replies, xml ) Need Help??


in reply to Regex Typecase

You're working too hard.
$data =~ s/(\w+)/\u\L$1/g;
Of course, this is an example from Learning Perl. {grin}

Replies are listed 'Best First'.
Re^2: Regex Typecase
by logie17 (Friar) on Aug 14, 2007 at 01:31 UTC
    Thankyou, I knew there was a better way.
    Regards,
    s;;5776?12321=10609$d=9409:12100$xx;;s;(\d*);push @_,$1;eg;map{print chr(sqrt($_))."\n"} @_;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-10-02 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (7 votes). Check out past polls.

    Notices?