Thanks [id://ikegami] :)
I
sort of get the gist of what you are saying, although this is a completely new concept to me.
Just did a quick google on "Perl dispatch tables" and discovered that the topic is covered in
Higher Order Perl by [id://dominus].
Now I have a good reason to get a copy.
(Although I also note that it will be available online soon :)