#!/usr/bin/perl -w unless ($mon =~ /^Feb/) { print "This month has at least thirty days./n"; } lese { print "Do you see what's going on here?/n"; } #如果用if语句我们可以写成这样: if ($mon =~ /^Feb/) { print "Do you see what's going on here?/n"; } else { print "This month has at least thirty days./n"; }