http://www.perlmonks.org?node_id=433870


in reply to Re: Need help with DBD::Pg
in thread Need help with DBD::Pg

I tried that too:
use DBI qw(:sql_types); use DBD::Pg qw(:pg_types); my $sql = "..."; $sth->prepare($sql); $sth->bind_param(1,$date, {pg_type => PG_DATE}); $sth->bind_param(etc.)... $sth->execute();
Then, I get this error: Bareword "PG_DATE" not allowed while "strict subs"