print "that's the answer" if $answer == 42;
####
if ($answer == 42)
print "that's the answer";
else
print "you're a jerk. a complete kneebiter.";
####
print "that's the answer" if $answer == 42;
print "you're a jerk. a complete kneebiter." unless $answer == 42;