Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
No such thing as a small change
 
PerlMonks  

Re^2: How do I replace \t and regarding to the alignment requirement ?

by PerlOnTheWay (Scribe)
on Apr 19, 2012 at 14:20 UTC ( #965975=note: print w/ replies, xml ) Need Help??

Comment on Re^2: How do I replace \t and regarding to the alignment requirement ?
Re^3: How do I replace \t and regarding to the alignment requirement ?
by Anonymous Monk on Apr 19, 2012 at 14:23 UTC

    And what should it do for multiple lines?

Re^3: How do I replace \t and regarding to the alignment requirement ?
by JavaFan (Canon) on Apr 19, 2012 at 14:26 UTC
    Sure it does.

    Unless you mean that you want to restart counting offsets on each newline. But you didn't specify that.

      Yes I want to restart counting offset on newline,sorry for missing that!
        The trivial way to doing that is to split the string on newlines, tabify each line, than join them with newlines again.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-04-19 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls