You could also use translate operator: 

tr/a-zA-Z/ /cs;             # change non-alphas to single space

See perlop for more details.

HIH,

Tim

----------------------------------------------------------------
(EXTERN) CHAKIROV, Timour (TZ CIS / DS ESQ3)

Robert Bosch GmbH          Tel:     +49 (0) 711-811- 3 00 48
Postfach 30 02 20          Fax:     +49 (0) 711-811- 3 18 00
D-70442 Stuttgart          e-mail: [EMAIL PROTECTED]
Besucher: Wernerstr.51, Fe533/3, D-70469 Stuttgart-Feuerbach

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 11. März 2003 16:48
An: [EMAIL PROTECTED]
Betreff: [Perl-unix-users] deleting "invisible" characters


Hi all,

I have a file that contains some "invisible" characters. These characters
look like white spaces when I open the file in a text editor. Is there
a way I can make them visible so that I can manipulate them with a Perl
script? Is there a Perl function that allows me to delete any "invisible"
character? Can I convert them to hex/octal values?

Thanks,
--tassos 
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to