#my $not = $exists ? '' : ' not'; unless($exists){ print "Number $n is not in the database.
\n"; }