Re: [Hampshire] Perl modules, how do I know I have them??

Top Page

Reply to this message
Author: Jacqui Caren
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Perl modules, how do I know I have them??
Vic wrote:
>> DBI and DBD::mysql
>>
>> How do I check that these are installed? I am running Mepis 8 RC1 (which
>> is based on Debian Lenny).
>
> The easiest way to see if they are on your system is just to try to use them:
>
> perl -e "use DBI"
> perl -e "use DBD::mysql"
>
> If you get "Can't locate ..." errors, you haven't got them.


perl -MDBD::mysql=99999 -e 'print $DBD::mysql VERSION'

should tell you what version you have installed.