eagleshi 发表于 2017-5-19 08:57:23

perl中ASCII转换的函数——chr、ord

  程序:

#!/usr/bin/perl -w
use strict;
my $num=ord 'E';
print "The ASCII is : $num\n";
my $word=chr(69);
print "The word is : $word\n";

  结果:
  The ASCII is : 69
The word is : E
页: [1]
查看完整版本: perl中ASCII转换的函数——chr、ord