To test any perl module, just put below lines in a file, make it executable (chmod +x) and run it (./).
#!/usr/bin/perlwhere DBD-Pg is example of perl module. This script will return "No errors!" if the module is available. If the module is not installed, an error like "Can't locate ...." will appear instead.
use DBD-Pg;
print "No errors!\n"
No comments:
Post a Comment