Perl/Shell Knowledge Sharing
Perl Interview Questions and Answers
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