find the character's value by using the ord() function : ord « String « Perl






find the character's value by using the ord() function

    
#!/usr/bin/perl

use warnings;
print"A # has ASCII value ", ord("#"),"\n";
print "A * has ASCII value ", ord("*"),"\n";

   
    
    
    
  








Related examples in the same category

1.print ord 'A';
2.print ord 'ABC';
3.Using the ord function to the get the ASCII code value