$func = "format_hard_drive"; print "Good news, function exists!" if eval { &$func() };