With the same caveat of Caution!, that could be reduced to:
$_ = 'ABCDEDBCA ABCDEFGFEDCBA'; s[([A-E])][ "func_$1" ]gee;;
In reply to Re^2: Howto avoid large hard-coded else-if function calls
by BrowserUk
in thread Howto avoid large hard-coded else-if function calls
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |