in reply to Re: Range of chars except one
in thread Range of chars except one
(Note I'm using octal here). This specifies that the newline character is replaced by itself, while everything else in that range is deleted.$string =~ tr/\n\000-\037/\n/d;
There are three advantages to this method: <NL>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Range of chars except one
by Anonymous Monk on Jan 21, 2002 at 08:47 UTC |