Subject: | It would be nice to have the opt for a global yaml? |
This is more of a feature request, though it would be nice to have a
global YAML for clean_by_yaml so that you could start to use the
String::Clean object to do the work for you instead of having to build a
one-off sub that will do nothing more then add in the YAML.
example:
sub clean_thing {
my ( $string ) = @_;
my $yaml = q{ ... SOME YAML ...};
return $global_cleaner->clean_by_yaml($yaml,$string);
}
This should have the added benefit of allowing for one object to be
passed around, or at least encourage that more.
--
--
benh~