Switch? Not terribly big deal to me either way. I can see it's value if you want to do some sort of goto-based dispatch, and yes I consider it an improvement over a hash full of coderefs since the conditions in a switch can be more involved that the simple labels that are hash keys. Enough languages have this that there's no reason to avoid it.
I have to disagree with you here. What's wrong with the following?
my %SomeHashWithCoderefs = (
FOO => \&foo,
BAR => \&bar,
BAZ => \&baz,
);
sub Switcheroo {
my @conditions = @_;
# Using the @conditions, return 'FOO', 'BAR', or 'BAZ'
}
# In some main area...
$SomeHashWithCoderefs{Switcheroo(@args)}->(@otherargs);
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.