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

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

by moritz (Cardinal)
on Aug 12, 2007 at 08:00 UTC ( #632029=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $s = "ZBBBCZZ";
    my @list = $s.comb: rx/(.)$0*/;
    
    # or if you are very fond on split:
    my @list = $s.split(rx/<after (.)><!before $0>/);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://632029]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-11-23 05:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (328 votes). Check out past polls.

    Notices?