As you can see from the above, the tab character represents a different amount of spaces depending on how close to the next tabstop you are.| | | | | | | | | | 1234567890123456789012345678901234567890 this is\ta test this is a test this was\ta test this was a test
Simple substitution of \t for \s{4} will not work. You must know how many spaces are necessary to reach the next stop.
Text::Tabs will correctly expand and contract tabs for you.
In reply to Re: One liner asked... :)
by mr.nick
in thread One liner asked... :)
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |