hi
In perl we have DBI module to connect to any database.
step1: we need to intialise the DBI module
use DBI;
step2 : connect to database using DBI module which reutrns database handle
$dh DBI->connect( dbi:mysql:database DBname username password );
step3 : to rertive data from database use select query
$sth $dh->prepare( select name symbol from table );
$sth->execute();
while(@row $sth->fetchrow_array()){
print name $row[0] symbol $row[1];
}
$dh->disconnect();