in reply to Re: "return" to break out of a loop
in thread "return" to break out of a loop

Very short but not very efficient because the implicit loop is not aborted at the first successful match. Because grep is returning the number of successful matches in scalar context all list elements are getting checked.
More efficient would be:
use List::MoreUtils; return 1 if any { $check_type eq $_ } @$enums;