Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 contemplating the Monastery: (7)
As of 2015-06-03 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (137 votes), past polls