Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to read the file names outputed by 'ls --color -p' in my perl script using a pipe.
So the complete command is 'ls --color -p | myPerl'.
But the file names read in have some very strange chars around them, which are operating system delimiters (linux redhat8). They are not regarded as white spaces, they are even patterned as printable chars. If I match them with POSIX' [[[:print:]]], they look like [00m. However, I can not find any pattern to remove them. It is so frustrating. Could you please give me some help on this? Thank you so much.
All the best. ginger
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: remove operating system delimiters?
by jasonk (Parson) on Dec 05, 2003 at 00:10 UTC | |
|
Re: remove operating system delimiters?
by sauoq (Abbot) on Dec 05, 2003 at 02:21 UTC | |
|
Re: remove operating system delimiters?
by Roger (Parson) on Dec 05, 2003 at 00:56 UTC | |
by Anonymous Monk on Dec 05, 2003 at 16:35 UTC | |
by iburrell (Chaplain) on Dec 05, 2003 at 21:09 UTC | |
by Anonymous Monk on Dec 05, 2003 at 23:28 UTC |