Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: regex'ing source code

by monsoon (Pilgrim)
on Jun 29, 2012 at 03:24 UTC ( #979036=note: print w/ replies, xml ) Need Help??


in reply to regex'ing source code

How about this?

while(/\t/g){ s/\t/$-[0]%4?" "x(4-$-[0]%4):" "x4/e; }


Comment on Re: regex'ing source code
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-12-19 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (71 votes), past polls