Perl Monk, Perl Meditation | |
PerlMonks |
Re^5: $dbh could not be passed to function unless another variable is also passedby Fletch (Bishop) |
on Aug 08, 2019 at 14:11 UTC ( [id://11104180]=note: print w/replies, xml ) | Need Help?? |
You've stringified all three of your arguments which isn't what you want to do. A DBI handle is an object which is (usually) implemented as a reference to a data structure such as a hash. When you pass it through double quotes you're breaking that reference (hand waving a bit here; see perlobj for more details) so when you try and call methods upon it you're trying to call methods on a string value (hence your error).
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|