Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 having an uproarious good time at the Monastery: (4)
As of 2014-09-23 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls