Tim Booher wrote: > I don't know if they are truly "valid, printable characters". When a text > file show this type of information, isn't ascii just approximating some > binary data? > > Why I think this is if I open with notepad I get a file that looks like > the: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ described earlier but if I do a simple: > > Perl -ne "print" test.msg I get only a single: > ????í? > > (btw this is the same output I get when I do a: c:\type test.msg) > > Even if I wanted to define a character class like [a-zA-Z] how would just > extract these characters? >
the characters you see are probably extended ASCII characters, try remove them like: my $i = "string with extended ASCII character"; $i =~ s/(.)/ord $1 > 177 ? '' : $1/ge; david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]