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

Top Page

Reply to this message
Author: Tim
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Perl modules, how do I know I have them??
On Tuesday 13 January 2009 10:33:20 Jacqui Caren wrote:
> 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.



I could not get your command to run, kept getting

"Cant use undefined value as symbol reference at -e line 1"

Tim

____________________________________________________________
GET FREE 5GB EMAIL - Check out spam free email with many cool features!
Visit http://www.inbox.com/email to find out more!