See require for how to make require load a class dynamically.
Basically, you need to transform a class name into a (unix) path name to require. parent.pm has the code, which I'm quoting here:
for (@modules) { s{::|'}{/}g; require "$_.pm"; # dies if the file is not found };
In reply to Re: On kind of dynamic loading
by Corion
in thread On kind of dynamic loading
by damog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |