Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to format such a string?

by Anonymous Monk
on Jun 16, 2013 at 00:45 UTC ( [id://1039170]=note: print w/replies, xml ) Need Help??


in reply to Re: How to format such a string?
in thread How to format such a string?

It is actually the boundaries of the small substrings... So, in my example, you have: i3-12o36-45i76-88o, which means that the "original" string starts with i, then from 3-12 we have M, then we have o, then from 36-45 we have M again, then i etc...

Replies are listed 'Best First'.
Re^3: How to format such a string?
by RichardK (Parson) on Jun 16, 2013 at 14:04 UTC

    Ok -- is your output format fixed? I think run length encoding could be more compact and easier to work with, but maybe that's just me.

    So your string would rle as 2i10M23o...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found