A raw stream of the printable text in a WordStar file could therefore be discerned by masking off the 8th bit and discarding codes in the range of 00h through 1Fh. This method would, of course, omit all formatting and control information in the file. In addition to stripping control characters, symmetrical sequences must be stripped. See the description of symmetrical sequences below. #### $/ = undef; open FH, "< $wordstarfile" or die "craps. $!"; $doc = ; # delete all ctrl chars except newline $doc =~ tr/\x00-\x09\x0b-\x1f//d; # turn off all high bits $doc =~ s/([\xa0-\xff])/chr(ord($1) ^ 0x80)/eg; print $doc;