in reply to
Replacing characters in a line
the following simple regex should work:
s/ D / X /g;
Comment on
Re: Replacing characters in a line
Download
Code
Replies are listed 'Best First'.
Re^2: Replacing characters in a line
by
monkey_boy
(Priest)
on Mar 04, 2005 at 14:45 UTC
*UPDATE*
Ignore me. I didnt read the message properly
but that would also replace the other lonley "D"'s
e.g.
ATOM 3316 N TYR D 24 97.479 18.805 2.990 1.00 36.32
D
N
Im so sick of my Signature...
[reply]
In Section
Seekers of Perl Wisdom