Generally, there are two ways to check whether you have installed the Perl module or not:

$ perl -MMODULE -e1
$
$ perl -e 'use MODULE'
$