App-olson
view release on metacpan or search on metacpan
use warnings;
use strict;
use Params::Classify qw(is_ref);
use Test::More tests => 33;
BEGIN { use_ok "App::olson"; }
sub pa($) {
my($txt) = @_;
pos($txt) = undef;
my $attr = App::olson::_parse_attribute_from_gmatch(\$txt);
$txt =~ /\G\z/gc or die "extraneous matter after attribute\n";
return $attr;
}
sub san($) {
return $_[0] unless is_ref($_[0], "HASH");
my %attr = %{$_[0]};
( run in 2.305 seconds using v1.01-cache-2.11-cpan-5b529ec07f3 )