Convert value to character based on its ASCII code : chr « String « Perl






Convert value to character based on its ASCII code

     

$s = 65;
print "The character " . chr($s) . " corresponds to ASCII code $s";

   
    
    
    
    
  

Related examples in the same category

1.print chr 65;
2.print chr(ord "A");