in reply to Re: callback function params
in thread callback function params

Thanks for the suggestion. Personally, I'd prefer to avoid DBD::SQLite, as it provides gobs more functionality than I need. For additional information, when I invoke Dumper(@_) in my callback subroutine, I get:
$VAR1 = bless( {}, 'DBI::st' );
When I try the proffered code, I get: Can't call method "fetchall_arrayref" on an undefined value.

Replies are listed 'Best First'.
Re^3: callback function params
by soonix (Chancellor) on May 26, 2024 at 21:11 UTC
    That looks like you omitted the my ($sth) = @_; line.
Re^3: callback function params
by azadian (Sexton) on May 27, 2024 at 17:32 UTC
    Ooops! Found my problem. I simply didn't have $date in quotes, as SQL requires. Thanks for the help.

      Congratulations on the injection vulnerability; say hi to Bobby when he calls. Also you’re not avoiding DBI by using this module, you’re just adding a layer of 20 year old code over the top of the standard DB interface because it uses both it and DBD::SQLite.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.