[oracle@jhoa 6]$ cat 4.pl $mon = $ARGV[0]; unless ($mon eq "Feb") { print "This month has at least thirty days.\n"; }else { print "Do you see what's going on here?\n"; } [oracle@jhoa 6]$ perl 4.pl Feb Do you see what's going on here? ---条件为假时,才执行 [oracle@jhoa 6]$ perl 4.pl Febf This month has at least thirty days.
unless = if not