in reply to Maintainable and robust Pattern Matching with changing goalposts
my %header_handlers = ( Device => \&process_device, Type => \&process_type, ... ); ... my $handler = $header_handlers{$header}; &{$handler}($ref) if defined $handler;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Maintainable and robust Pattern Matching with changing goalposts
by McDarren (Abbot) on Sep 19, 2005 at 07:43 UTC |