after adding use Data::Dumper; to your code.while(my $trade = $trdstmt->fetchrow_hashref()) { print Dumper $trade; &$action(%$trade); $count++; }
$trdstmt->bind_param(1,$self->{'startdate'}) or die "Bind failed: +$DBI::errstr"; $trdstmt->bind_param(2,$self->{'enddate'}) or die "Bind failed: $D +BI::errstr"; $trdstmt->execute() or die "Execute: $DBI::errstr";
Update: Note the bug caught by bluescreen below.
In reply to Re: Dumper dereferencing problem
by kennethk
in thread Dumper dereferencing problem
by hsweet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |