Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by tye (Sage)
on Nov 30, 2005 at 16:47 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://512995]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found