perl ascii值与字符之间的相互转换

$num  = ord($char);
字符转为ascii值

$char = chr($num);
ascii值转为字符

posted on 2012-09-25 16:21  云中道长  阅读(406)  评论(0编辑  收藏  举报

导航