Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to replace <tags> in a document. I noticed something interesting:
if I do 'more FOO.txt' I see:
if I view the same file with ptked or gedi, I see:<93> abcde <94>
SOOO, is the 'more' filter correct or is the editor written in PERL correct?\x{93} abcde \x{94}
I want to convert the stupidness to plain ASCII(?) punctuation marks so the grammar is correct, it looks better, and I can search with a perl/ptk program I am writing. Has someone already written a program to do this?
I have already figgered out how to convert the EOL chars to "/n" .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PERL UNIX and strangeness and char conversion
by hippo (Archbishop) on Jan 18, 2021 at 16:35 UTC | |
|
Re: PERL UNIX and strangeness and char conversion
by ikegami (Patriarch) on Jan 19, 2021 at 12:18 UTC | |
|
Re: PERL UNIX and strangeness and char conversion
by tybalt89 (Monsignor) on Jan 18, 2021 at 19:54 UTC | |
by Anonymous Monk on Jan 18, 2021 at 21:55 UTC | |
by tybalt89 (Monsignor) on Jan 18, 2021 at 22:11 UTC | |
|
Re: PERL UNIX and strangeness and char conversion
by jcb (Parson) on Jan 18, 2021 at 23:59 UTC | |
|
Re: PERL UNIX and strangeness and char conversion
by Anonymous Monk on Jan 18, 2021 at 20:31 UTC | |
|
Re: PERL UNIX and strangeness and char conversion
by betmatt (Scribe) on Jan 20, 2021 at 10:52 UTC |