Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Efficient run determination.

by rasta (Hermit)
on Nov 14, 2002 at 10:42 UTC ( [id://212813]=note: print w/replies, xml ) Need Help??


in reply to Efficient run determination.

Not enought laconically, although fast enought:
$string =' aaaa bbbbccccccccbbbb aaaabbbbbcddddddddddddddddddd +d'; $l = length($string); $pp = 0; while ($pp < $l) { $c = substr $string, $pp, 1; if ($string =~ /\G\Q$c\E+/gc) { print "('$c',", $pp, ",",pos($string) - $pp,")\n"; $pp = pos($string); } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found