in reply to Stripping non alphanumeric characters and leaving punctuation characters from a file
Whilst $line =~ tr[\x00-\x1f][]d; will strip ascii chars less than space from your input, I don't think that will do you any good if your input is terminating before the end.
If you can't read it, how can you fix it?
Have you tried using binmode on the file?
Does it make any difference?
Am I misreading your post?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Stripping non alphanumeric characters and leaving punctuation characters from a file
by Popcorn Dave (Abbot) on Jun 06, 2003 at 19:40 UTC |