in reply to Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
If you don't mind the different order of the output then:
:-)$ perl -le'print for keys %{ { "ZBBBCZZ" =~ /((.)\2*)/g } }' Z ZZ BBB C
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by jdporter (Paladin) on Aug 12, 2007 at 13:22 UTC | |
Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by graff (Chancellor) on Aug 12, 2007 at 14:24 UTC | |
Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by blazar (Canon) on Aug 13, 2007 at 10:06 UTC |
In Section
Meditations