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 ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found