NAME
Mail::DKIM2::Util - Small helpers shared by the Mail::DKIM2 modules
SYNOPSIS
use Mail::DKIM2::Util ();
Mail::DKIM2::Util::check_options('My::Class->new', \%options, qw(Domain Selector));
DESCRIPTION
Internal to the distribution: what every module needs and none of the others owns. New in 0.31.
See "CONVENTIONS" in Mail::DKIM2 for the conventions every module follows.
FUNCTIONS
check_options($what, \%options, @known)
Croaks unknown option NAME for $what, blaming the caller's caller, if %options has a key that is not in @known. Every constructor and class method that takes named options calls it first, so a misspelt option is an error and not a silently ignored setting.
is_base64string($string)
True if $string is a base64string (-09 section 2.14) with its FWS already removed: base64 characters padded with = to a multiple of four.
AUTHOR
Bron Gondwana <brong@fastmailteam.com>
COPYRIGHT AND LICENSE
Copyright (c) 2025-2026 Fastmail Pty Ltd. This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.