go ahead... be a heretic | |
PerlMonks |
Re^2: Creating dynamic parent/child relationshipsby nysus (Parson) |
on Sep 03, 2019 at 17:34 UTC ( [id://11105522]=note: print w/replies, xml ) | Need Help?? |
OK, I think I see what you are saying. So essentially, my Base class does the following when the "do" method is called on it:
And my config file would determine which order to run the subroutines from each of the packages. Is that right? UPDATE: Here is a version of the code above that is a bit more dynamic:
So I think I got it from here. I just have to dynamically import the correct modules and populate the steps attribute with the config file during construction. Nice trick. Thanks!
$PM = "Perl Monk's";
In Section
Seekers of Perl Wisdom
|
|