Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: disappearing digit with regex and tr

by Velaki (Chaplain)
on Aug 18, 2006 at 15:13 UTC ( [id://568181]=note: print w/replies, xml ) Need Help??


in reply to disappearing digit with regex and tr

After running your snippet of code and piping it through cat -v, I get:

1234567.89 1.234.567.^H,89 1.234.567.^H,89 1234567^H.89
It looks like you have a remnant of a word boundry in your regex in that long statement, but because it's in the replacement side of the substitution, it's being treated as a backspace. Perhaps you meant it to go in the search portion of the substitution section?

Hope this helped,
-v.

"Perl. There is no substitute."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2024-04-24 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found