Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979036]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2016-12-04 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (63 votes). Check out past polls.