Use the chr function.
print chr( $number );
Tanton
----- Original Message -----
From: "Angerstein" <[EMAIL PROTECTED]>
To: "Mailinglist Perl Beginners" <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 6:16 AM
Subject: HELP: How to translate ASCII-CODE to ASCII-Charakters
> Hello,
>
> I have a stupid Problem:
> I have to translate a lot of ASCII-Codenumbers (49,54,110....) into
> Charakters.
>
> How can I do this? Do I have to make a
>
> if ($number == 49){ print ']';}
>
> Or is there an better, faster, smarter way.
>
> I could not find anything about that, maybe there is a possibility with
> pack/unpack or printf??
>
> Thanks for Help,
>
> Bastian
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]