Sunday, November 19, 2006

Perl : Is this module Installed ?

How do you check if a certain perl module is installed and is in @INC ?

On the command-line, issue this command

perl -e 'use X::Y'

X::Y is the module
With -e, you can executes the perl code in quotes on command line.

If the module is found, there won't be any errors (no output).

No comments: