Search results for "dist:Smart-Dispatch perlsyn"
Smart::Dispatch - first-class switch statements
People have been using dispatch tables for years. They work along the lines of: my $thing = get_foo_or_bar(); my %dispatch = ( foo => sub { ... }, bar => sub { ... }, ); $dispatch{$thing}->(); Dispatch tables are often more elegant than long groups o...
TOBYINK/Smart-Dispatch-0.006 - 16 Sep 2014 18:35:13 UTC