http://www.perlmonks.org?node_id=264980

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Perl Monks, I know that you do not like lazy person and use expertise for simple stuff. Since I am a newbie and try to accomplish a task that is quite advance, if you do not mind, I would like get a help from you again. I am trying to read a bardcode from a serail port. However I am getting nonprinting extented ascii character and try to replace them with meaningful one eg. "50003903363" replace "" with "4". As you can imagine I could not figure it out. I am using a below command to do it, but it cannot recognize "" that is Chr 180. $Buffer =~ s/(char 180)/4/eg ; Regards,