Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Elegant way to split into sequences of identical chars?

by thundergnat (Deacon)
on Nov 29, 2005 at 21:39 UTC ( #512779=note: print w/replies, xml ) Need Help??


in reply to Elegant way to split into sequences of identical chars?

You may want to take a look at the node: Puzzlement in Splitsville which discusses this exact issue. Lots of answers there.

  • Comment on Re: Elegant way to split into sequences of identical chars?

Replies are listed 'Best First'.
Re^2: Elegant way to split into sequences of identical chars?
by japhy (Canon) on Nov 29, 2005 at 21:50 UTC
    ... perhaps the best of which is Anonymous Monk's "In Perl6, this can be done using a single, 5 Unicode-character long, operator."

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

      Notice I didn't say lot's of GOOD answers there...

      Instead, there's the whole gamut of answers. A couple examples of good idiomatic perl, a few obscure hackish answers, one of C written in perl and at least one of someone who seriously shouldn't have skipped his meds that morning.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2019-05-20 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (123 votes). Check out past polls.

    Notices?