Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-21 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls