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 0.812 second using v1.01-cache-2.11-cpan-3d66aa2751a )