programming-examples/perl/String/Using the ord function to the get the ASCII code value.pl
2019-11-15 12:59:38 +01:00

6 lines
121 B
Perl

#!/usr/bin/perl -w
print "A # has ASCII value ", ord("#"), "\n";
print "A * has ASCII value ", ord("*"), "\n";