Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 avoiding work at the Monastery: (3)
As of 2022-12-08 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?