I have some classes. Each class is placed in one XXX.pm Each class has a sub new where the content is different from the other classes.
In my code i store all objects (FW.pm) in @fw, and @vlan contains all objects in VLAN.pm and so on ...
What I need to have is only one sub routine that calls one method n each class which displays all objects.
for instance: NT::FW->traverserObjects or NT::VLAN->traverserObjects ...
I'm also new in OO. So if you know a better way of doing it, please let me know.
Thank you :)
In reply to OO: how to make a generic sub by Hossein
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |