Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-07-10 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls