in reply to Re: Module hierarchy help
in thread Module hierarchy help

Thanks for answer duc,

yes, I am planning to have 50 files under dir Robot::Web. Each webpage is so different, that I _have_ to use other rutine for download, other for parsing, and ofcourse I dont want to have all that in 1 file/place. So I decided to do this.

When some routine _could_ be used in more than 1 web (insert to db for example), I will put in Base. For example I dont know, if I should load all those modules to robot.pl, or in robot.pl will be only Base, and in Base all Robot::Web::* will be loaded. I think better is 2nd option, but never did this and dont know how to do that :(

Replies are listed 'Best First'.
Re^3: Module hierarchy help
by duc (Beadle) on Jul 27, 2006 at 14:03 UTC
    For that I think the second option is better. You would just have to put something like use Web::Something but I agree 50 module doing almost the same work but in different manner looks like a nightmare. I don't know how to help you on that though and I understand what you mean.