Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Elegant way to split into sequences of identical chars? (for)

by tye (Sage)
on Nov 30, 2005 at 16:47 UTC ( #512995=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        for( $thingy{foo()}{bar()} ) {
            s/^\s+//;
            s/\s+(#.*)?$//;
            tr/A-Z/a-z/;
        }
    
  2. or download this
        $thingy{foo()}{bar()} =~ s/^\s+//;
        $thingy{foo()}{bar()} =~ s/\s+(#.*)?$//;
        $thingy{foo()}{bar()} =~ tr/A-Z/a-z/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2019-06-20 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (90 votes). Check out past polls.

    Notices?