Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 exploiting the Monastery: (13)
As of 2014-07-28 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (201 votes), past polls