if ($student = "") { print "Cannot find that student, try again\n"; } else { print "$_ has a" . $student . "\n"; }