my %header_handlers = ( Device => \&process_device, Type => \&process_type, ... ); ... my $handler = $header_handlers{$header}; &{$handler}($ref) if defined $handler;
In reply to Re: Maintainable and robust Pattern Matching with changing goalposts
by ikegami
in thread Maintainable and robust Pattern Matching with changing goalposts
by McDarren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |