Binary package “libdispatch-class-perl” in ubuntu bionic

dispatch on the type (class) of an argument

 This module offers a simple way to check the class of an object and
 handle specific cases specifically.
 .
 In other words this module provides a way to do specific tasks at run
 time depending on type of object passed, similar to run time
 polymorphism.