Perl Monk, Perl Meditation | |
PerlMonks |
string matching with extented ASCII charactersby Anonymous Monk |
on Jun 11, 2003 at 08:35 UTC ( [id://264980]=perlquestion: print w/replies, xml ) | Need Help?? |
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. "500039„§03363„§" 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,
Back to
Seekers of Perl Wisdom
|
|