Hi, You didn't say if you are running Windows, Linux or something else... If you have Linux, you probably already have perl. If you use Windows, get and install perl from
www.activestate.com. You must also get and install MySQL from
www.mysql.com if you don't have it installed. Then you need to install the modules DBI and DBD::mysql using (under Unix/Linux): $ cpan cpan install DBI cpan install DBD::mysql or cpan force install DBD::mysql Then you could read more about these modules using: $ perldoc DBI $ perldoc DBD::mysql and you can start using them like: my $dbh = DBI-connect( dbi:mysql:data_base_=test , username , thePassword ); #Create a table $dbh-do( create table foo(id int unsigned not null autoincrement primary key, body text) ); #Insert a few rows my $sth = $dbh-prepare( insert into foo(id, body) values(?, ?) ); my @bodies = qw/foo bar baz/; foreach my $body(@bodies) { $sth-execute(undef, $body); } #select a row my $sth2 = $dbh-prepare( select id, body from foo where id=? ); $sth2-execute(3); my ($id, $body) = $sth2-fetchrow_array; You will find many ways of using DBI from the POD doc. HTH. Octavian - Ukryj cytowany tekst -- Pokaż cytowany tekst -