- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] perl substitution of metacharacter
- From: Russell Davies <russell.davies@xxxxxxxxxxxxx>
- Date: Mon Aug 28 11:38:30 2000
; ; I have a file that's being processed by Perl that has a bunch of
; ; "^@" symbols in it. This is the "Control-at" character.
; ; I want to expunge the file of all the "^@" symbols.
;
; You seem to have NULs embedded in your file, many programs are well
; known for not coping with them too well.
;
; s/\000//g in Perl should work, strings might possibly suffice too.
I probably should have mentioned that 'od' is handy for canonicalising
weird characters, once you see precisely what your data is, it's a
trivial task to apply the right tool. (I should have mentioned tr as
well)
r.