Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
XP is just a number
 
PerlMonks  

Re3: The One True Style of indentation:

by blakem (Monsignor)
on Apr 15, 2002 at 03:15 UTC ( #159079=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: The One True Style of indentation:
in thread The One True Style of indentation:

A slightly different way to do that:

perl -pi -e 's/\G\t/ /g' foo.pl
(Adapted from a "replace-leading-zeros-with-spaces" oneliner I seem to remember)

Update: looks like the original came from merlyn after dominus offered a suggestion similar to japhy's

-Blake


Comment on Re3: The One True Style of indentation:
Download Code
Re: Re3: The One True Style of indentation:
by hsmyers (Canon) on Apr 16, 2002 at 11:53 UTC
    Ummm-- I think that was a 'dictum', not a suggestion...

    –hsm

    "Never try to teach a pig to sing…it wastes your time and it annoys the pig."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-04-20 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls