Mark wrote: > > HI, Hello,
> Using /c in conjuction to tr/// as stated in 'perlop' complements the > searchlist. Is this to mean that the scalar in $val=~tr/this//c is also > scanned for any values of t,h,i or s that may be interpreted as negative > values of those character representations? Suppose you have the set: (a b c d e f g h) and a subset of that: (c d e f). The complement of the subset (c d e f) is (a b g h). A perl scalar holds strings of characters and each character can have any 8 bit value (8 bit clean.) This allows perl to modify binary files. # create a string 256 bytes long $string = ' ' x 256; # change each character to a different 8 bit value substr $string, $_, 1, chr for 0 .. 255; # print it out - IF YOU DARE!! print "$string\n"; If you want to remove characters in a string you can either specify each character you want to remove tr/\x80-\xFF//d; or the complement of the characters you don't want to remove. tr/\x00-\x7F//cd; HTH John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]