Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Compressing a text file using count of continous characters

by pfaut (Priest)
on Dec 14, 2007 at 17:01 UTC ( #657081=note: print w/ replies, xml ) Need Help??


in reply to Compressing a text file using count of continous characters

$string =~ s/(.)\1+/length($&).$1/eg;

90% of every Perl application is already written.
dragonchild


Comment on Re: Compressing a text file using count of continous characters
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-12-21 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls