in reply to use module if condition is met
Perhaps something like this:
if($type eq 'x'){ eval "use Some::Module"; } eval { mysubtocheck(); }; if($@){ #Sub ran }else{ #Sub not present or died }
- Tom
In Section
Seekers of Perl Wisdom