hehehe..
isn't this just like TEMPLATES?
ok... hmm.. i'd say you'd have to make a subroutine like this:
sub load {
my ($sub, $info) = @_;
use Templates::$sub;
}
or something
the files would need to be named *.pm though..
you could also try
sub load {
my ($sub, $info) = @_;
require "$sub.pl";
print &{\&{$sub}}($info);
}
that would be easier and you wouldn't have to package everything..
jerry