Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Is there any alternative way to speed up ?

by tybalt89 (Monsignor)
on Jun 16, 2017 at 15:18 UTC ( [id://1192950]=note: print w/replies, xml ) Need Help??


in reply to Is there any alternative way to speed up ?

#!/usr/bin/perl # http://perlmonks.org/?node_id=1192942 use strict; use warnings; while(<DATA>) { print /(.*)/, " -> ", /\d/ ? s/(\D)(\d+)/$1 x ($2 + 1)/ger : s/(\D)\K(\1+)/ length $2 /ger; } __DATA__ raaaammmmmaaaaaj ra3m4a4j foobar really?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found