Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unptintable charachters again ...

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

Parsing some postscript file I do not manage to get rid of unprintables:

for $line (<FILE>) {
$line =~ tr/\0-\010\012-\013\177-\377//d;

I guess it's probably some hidden escape sequences.
How do I get rid of these ?
Thanks


Long live king Moshiach !
 
See if this helps:
Code:
$_ = "\tTest\240 1\n2\5 3\177";
s/[^[:print:][:space:]]/*/g;
print;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top