chomp的用法

perl中chomp用来去除字符串后面的换行符。html 如如下代码ubuntu #!/usr/bin/perl -w $a = <stdin>; print "first input is $a"; $b = <stdin>; #chomp $b; print "second input is $b"; #!运行的结果是: xy@ubuntu:~/perl代码$ perl chomp 12
相关文章
相关标签/搜索