in reply to Perl using SQL placeholders issue

Instead of
#$bet = "and CONVERT(CHAR(10),tdate,101) between '?' and '?'";

try

my @args; ... $bet = "and CONVERT(CHAR(10),tdate,101) between ? and ?"; # ^ ^ # not quoted push @args, $fromdate, $today;

And then pass @args to the exec_select call.

Perl 6 - links to (nearly) everything that is Perl 6.