Technology Programming

Perl chr() & ord() functions - Quick Tutorial



chr(NUMBER); ord(CHARACTER); Perl's chr() and ord() functions are used to convert characters into their ASCII or Unicode values (and vice versa). chr() takes an ASCII or Unicode value and returns the equivalent character, and ord() performs the reverse operation by converting a character to it's ASCII or Unicode value.
print chr(65); print "\n"; print ord('A'); print "\n"; For more information on encoding, try some of these links:
  1. About ASCII


  1. ASCII Character Code Reference
  2. Perl Encoding with the Encode Module

Related posts "Technology : Programming"

Differences Between Byte Array Vs. String

Programming

Web Design Company UK/

Programming

Develop A Quality Plan With These Self Help Tips

Programming

TMediaPlayer: What track am I on?

Programming

How You Can Prove Your Expertise

Programming

Furniture Advice And Tips And Also Hardwearing. Property Searching Wonderful

Programming

Web Design Fort Lauderdale Business

Programming

Hire Web Designer and Diminish Development Expenditure

Programming

Web Masters.

Programming

Leave a Comment