Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 exploiting the Monastery: (9)
As of 2014-08-22 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (150 votes), past polls