Category: Basic Keywords: DBI
- 判断顺序
if (!defined ($a)) { print "NULL"; } elsif ($a eq "") { print "empty string"; } elsif ($a == 0) { print "zero"; } else { print "other"; }
<<Previous: 检查坏死链接 >>Next: When perl is not quite fast enough
Category: Basic Keywords: DBI
if (!defined ($a)) { print "NULL"; }
elsif ($a eq "") { print "empty string"; }
elsif ($a == 0) { print "zero"; }
else { print "other"; }
<<Previous: 检查坏死链接 >>Next: When perl is not quite fast enough
Options: +Del.icio.us
Related items