在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
use strict; 有用的测试样例:
use strict;
use warnings; my $x=1; if($x) { print "x:yes\n"; } my $y=0; if($y) { print "y:yes\n"; } my $z=0.0; if($z) { print "z:yes\n"; } my $a="0"; if($a) { print "a:yes\n"; } my $b='00'; if($b) { print "b:\yes\n" ; } my $c= "0.0"; if($c) { print "c:yes\n"; } my $d=""; if($d) { print "d:yes\n"; } my $e=" "; if($e) { print "e:yes\n" } my $g="0"; if($g==$c) { print "numerically equal" ; } if($g eq $c) { print "string-wise equal"; }
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论