Smart-Dispatch
view release on metacpan or search on metacpan
examples/use-syntax.pl view on Meta::CPAN
use syntax qw/maybe dispatcher/;
use Data::Dumper;
my $foo = dispatcher {
match(1);
};
print Dumper $foo;
( run in 1.334 second using v1.01-cache-2.11-cpan-39bf76dae61 )