if (foo()) { print "Everything is copacetic!\n"; } else { print "Whoops! Something went terribly wrong!\n"; }