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 IamaSherpa 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
Jun 1, 2003
25
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
 
a star for you, duncdude.
My VNC script is getting closer and closer to "completed" now...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top