#!perl/bin/perl use strict; print "Are you sure you want to quit ('yes' or any key for 'no'): "; chomp($_ = ); print /\byes\b/i ? <; print "GOOD DAY\n"; #### $foo = 1; $foo ? \& { print "foo"} : \& { print "bar"};