Help for this page
open FILE, ">file.txt" or die $!;
my $sth = $dbi->prepare("SELECT * FROM TABLE") or die DBi->errstr;