Here is the basic idea of what I'm attempting, I want to use a different module depending on what client my script runs for. Secondly,there are some functions that exist in one client module that may not exist in another. I would like to check for the existance of a sub before I call it.
if($type eq 'x') { use Some::Module; } #*pseudo* if(subExists('mysubtocheck')) { mysubtocheck(); }
Is this possible, or a good idea? Can you suggest some alternatives?
Thanks again monks,In reply to use module if condition is met by Grygonos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |