programming-examples/perl/String/find the character's value by using the ord() function.pl
2019-11-15 12:59:38 +01:00

6 lines
125 B
Perl

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