in reply to Avoiding if/else knots II

In Implementing Dispatch Tables, already pointed out by Limbic~Region in your previous thread, there's also a "Matching patterns and ranges" section (basically redirecting to Re: Massive regexp search and replace by grinder as for the real implementation of this regular expression approach using Regexp::Assemble), with some thoughts you may find interesting.

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.