The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Search results for "dist:Smart-Dispatch perlsyn"

Smart::Dispatch - first-class switch statements River stage zero No dependents

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
1 result (0.02 seconds)