Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: Converting Between Characters and Values

Perl: Converting Between Characters and Values
{filelink=14827}

#!/usr/bin/perl
foreach $elem(0..255)
{
 # print the character represented by a given number
 printf("$elem==>%sn",chr($elem))
}
foreach $elem("a".."z","A".."Z")
{
# print the number represented by a given character
 printf("$elem==>%sn",ord($elem))
}

Users who found this page were searching for:

  • python read emilfile
  • how to save a text in sql with java
  • scaling image java

No comments yet.

Leave a Comment