develooper Front page | perl.beginners | Postings from April 2008

Writing hexa in ascii

Thread Next
From:
gilles.bellaches@laposte.net
Date:
April 11, 2008 07:28
Subject:
Writing hexa in ascii

 Hi all,
I want to read a serial comm port receiving hexa data.
Then i would like to print these data in ascii, i mean if i receive 0x41, i would print "41" not the character "A".

I try with the pack function but it doesn't work (surely because i don't understand this function)

Have you any idea ??

Thanks

Gilles





 

 Créez votre adresse électronique prénom.nom@laposte.net 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About