azadian has asked for the wisdom of the Perl Monks concerning the following question:
Now I presume that somehow the data from the selected rows will be handed to my itm() callback function, but I don't know how. How can I access this data?sub itm { } my $db = SQLite::DB->new($DBfile); + $db->connect or croak "Can't connect to $DBfile, aborting\n"; + $db->select("select * from item where date = $date", \&itm) or croak " +Can't read items for '$date', aborting\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: callback function params
by Corion (Patriarch) on May 25, 2024 at 16:20 UTC | |
by azadian (Sexton) on May 26, 2024 at 14:14 UTC | |
by soonix (Chancellor) on May 26, 2024 at 21:11 UTC | |
by azadian (Sexton) on May 27, 2024 at 17:32 UTC | |
by Fletch (Bishop) on May 28, 2024 at 11:11 UTC |