@module = ("require Mail::Sendmail 0.75"); for(@module){ eval; if($@){ $_=~/\w+\W(\S+)/; print "Module $1 does not exist, please install it fir +st!\n"; }else{ #do stuff } };
In reply to Re: Check if module is installed
by biohisham
in thread Check if module is installed
by DreamT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |