Ask Experts Questions for FREE Help !
Ask
    YankeeFan's Avatar
    YankeeFan Posts: 2, Reputation: 1
    New Member
     
    #1

    May 20, 2009, 06:18 AM
    Escaping a Vertical Tab
    Greetings
    I've found many sites that say \v is for a vertical tab. I found one that says it is not recognized as an escape character. I'm using perl v5.8.8 on a windows machine. In my script I cannot use \v, as it doesn't work. Sigh!

    $foo =~ s/\v/' - '/g;

    >> Unrecognized escape \v passed through at csodata-csv.pl line 668.

    Is there any simple work around for this? One site says use s/\\v/' - '/g, but that doesn't work either.

    Thanks for any tips.
    YankeeFan's Avatar
    YankeeFan Posts: 2, Reputation: 1
    New Member
     
    #2

    May 20, 2009, 06:55 AM
    The answer is to use the Hex or Octal code for the ascii character.:

    I choose the octal code for vertical tab: \013, Hex = B
    $foo =~ s/\013/' - '/g;

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Escaping the cycle [ 4 Answers ]

How can a living being come to "know the reality of the world?"

Dog escaping from yard [ 18 Answers ]

How do I keep my dog from wanting to escape from my yard?

Sewer Gas Escaping into the House [ 1 Answers ]

Home is approximately 6 years old, slab floor, two full baths connected to a septic system. Whenever, throughout the day, a sink drain has not been used in a few hours and you open a faucet to wash or get a drink of water, as the water starts to run down the drain if you are washing your face and...


View more questions Search