my $missing_opt_code_succeeded = eval { $tesla->option_codes('NON_EXIST'); 1; }; is $missing_opt_code_succeeded, undef, "If an option code doesn't exist, we croak ok"; like $@, qr/does not exist/, "...and error message is sane";