Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)

by Anonymous Monk
on Sep 11, 2007 at 00:54 UTC ( #638193=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    x = []
    "ZBBBCZZ".scan(/((.)\2*)/){ x << [$~[0]]; x.flatten!}
    
  2. or download this
    # => [["Z"], ["BBB"], ["C"], ["ZZ"]]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-12-25 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (159 votes), past polls