I am very very new to PERL, and quite ashamed to ask, thinking that my problem may just be really very simple to the monks. The following is my code:
#!/usr/bin/perl
use strict;
use DBI;
#Connect to the database
my $dbh= DBI->connect('DBI:mysql:my_database','my_name','my_password')
+ or die
"Couldn't open database: "$DBI::errstr;stopped";
$dbh->disconnect();
Trouble is, when I run it just to check the connection, it gets an error at the third line of the code, the part which says "Use DBI;". Please, what could be wrong? I'm pretty excited to learn PERL..!