Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: How to replace Tab with spaces not altering postion

by Aristotle (Chancellor)
on Oct 11, 2002 at 21:45 UTC ( #204681=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_ = join "", map { $_ . " " x (8 - length() % 8) } split /\t/, $_, -1;
  2. or download this
    $_ = join "", do {
        my @bits = split /\t/, $_, -1;
        (map { $_ . " " x (8 - length() % 8) } @bits[0..$#bits-1]), $bits[
    +-1]
    };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-10-22 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls