Im trying to have this file run with a cron that will go into the database and add 1 to all the users hp. Right now Im getting the error:
And here is the code inside the perl file
Help would be thanked alot since I have no experiance in .pl
Code:
Can't locate Mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /home/oiwio/public_html/hpup2.pl line 4.
BEGIN failed--compilation aborted at /home/oiwio/public_html/hpup2.pl line 4.
And here is the code inside the perl file
Code:
[I]#!/usr/bin/perl[/I]
[I]# PERL MODULE WE WILL BE USING[/I]
[B]use[/B] Mysql;
[I]# MySQL CONFIG VARIABLES[/I]
$host = "fmammorpg";
$database = "oiwio_oiwio";
$tablename = "users";
$user = "oiwio_oiwio";
$pw = "moosey11";
[I]# PERL MYSQL CONNECT [/I]
$[B]connect[/B] = Mysql->[B]connect[/B][U]([/U]$host, $database, $user, $pw[U])[/U];
$[B]connect[/B]->selectdb[U]([/U]$database[U])[/U];
SETVALUES [U]([/U]$hp[U])[/U] = $hp + 1;
$myquery = "INSERT INTO
$tablename [U]([/U]username, hp[U])[/U]
VALUES [U]([/U]*, $hp[U])[/U]";
$execute = $[B]connect[/B]->query[U]([/U]$myquery[U])[/U];
Help would be thanked alot since I have no experiance in .pl