Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert letter into ASCII 1

Status
Not open for further replies.

sebastiannielsen

Programmer
Joined
Jun 1, 2003
Messages
25
Location
SE
I need some function, for converting letter codes into ASCII values.

example:
lettercode('A') should return 65
 
Code:
#!/usr/bin/perl

lettercode('A');

sub lettercode {
  print ord(shift);
}


Kind Regards
Duncan
 
And the compliment of ord() is chr()
 
a star for you, duncdude.
My VNC script is getting closer and closer to "completed" now...
 
thank you Sebastian


Kind Regards
Duncan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top