#!/usr/bin/perl
use DBI;
$fechah = fechor();
$cnx = DBI->connect("dbi:dbftp:DSN=x;host=x.x.x.x;port:xxxx;" );
$ds = $cnx->prepare("UPDATE tabla SET campo='$fechah' WHERE campo='y'");
$ds->execute;
sub fechor
{
($seg,$min,$hor,$dia,$mes,$anio,$dsem) = (localtime(time))[0,1,2,3,4,5,6];
$mes+=1;
$anio+=1900;
$anio = substr($anio,2,2);
return "$mes/$dia/$anio $hor:$min:$seg";
}
Espero puedan ayudarme, gracias
