Perl/Shell/Python Knowledge Sharing
Perl, shell, python Interview Questions and Answers and quiz
Sunday, January 30, 2011
Find out module exists or not
$system = system(perl -MModule::Name -e1);
if(defined(@system)) {
print "Module Exists\n";
}
else
{
print "Module does not exists\n";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment