Lingua-Awkwords
view release on metacpan or search on metacpan
lib/Lingua/Awkwords/Subpattern.pm view on Meta::CPAN
}
sub set_patterns {
my $class_or_self = shift;
# TODO error checking here may be beneficial if callers are in the
# habit of passing in data that blows up on ->render or ->walk
%patterns = (%patterns, @_);
return $class_or_self;
}
sub update_pattern {
my $class_or_self = shift;
my $pattern = shift;
# TODO more error checking here may be beneficial if callers are in
# the habit of passing in data that blows up on ->render
croak "update needs a pattern and a list of values\n" unless @_;
croak "value must be defined" if !defined $_[0];
# NOTE arrayref as single argument is saved without making a copy of
# the contents; this will allow the caller to potentially change
( run in 0.605 second using v1.01-cache-2.11-cpan-49f99fa48dc )