程嶏清单8-9.txt

来自「< linux网络编程工具>>配套源码」· 文本 代码 · 共 8 行

TXT
8
字号
$_ =  "how are you";
$count = tr /ho/oh/;    # $_现在成为 "ohw are yhu",$count为3
print " The string now is : $_,the character number of replace is :$count\n ";
tr /abcde/ABCDE/;    # $_现在成为 "ohw ARE yhu"
print " The string now is : $_,the character number of replace is :$count\n ";
tr /a-z/A-Z/;    # $_现在成为 "OHW ARE YHU"
print " The string now is : $_,the character number of replace is :$count\n ";

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?