Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Aristotle (Chancellor)
on Oct 11, 2002 at 21:45 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://204681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found