in reply to Avoiding if/else knots

I think that is a common practice in Perl. I always write code like this:

my %functions = ( 'this' => sub { ... }, 'that' => \&do_something, ); my %attrs = (...); my $key = 'this'; $functions{$this}->(\%attrs);

Hope this helps.

Igor 'izut' Sutton
your code, your rules.