Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Suggestion on rewriting small code

by rsFalse (Friar)
on Aug 21, 2019 at 08:08 UTC ( #11104783=note: print w/replies, xml ) Need Help??


in reply to Suggestion on rewriting small code

One more way:
my $str = "(12341,1245125,1525125,125125125)"; print $str =~ s/,/ || /gr =~ y/()/"/r =~ s/(?=\b\d)/job==/gr;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2019-10-22 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?