Solved

Convert ascii number to character

Posted on 1997-08-14
1
2,290 Views
Last Modified: 2008-02-26
I am looking for a perl 4 function similar to the basic  chr$ fucntion.  I want to convert a number to it's ascii equivalent character.

ie  $char = something(number from 0-255)
if the right side is 65 I want the left side to be "A" etc.
0
Comment
Question by:donb1
1 Comment
 
LVL 2

Accepted Solution

by:
dmethvin earned 50 total points
ID: 1205447

$char = pack("C",$number);

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Search in text file in column and compare 4 46
Regular Expression for URL 10 91
XPath Syntax help in conjunction with perl XML::LibXML 18 104
Perl tar error 8 51
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now