XP is just a number | |
PerlMonks |
How to convert a symbolic reference to a hard referenceby princepawn (Parson) |
on Nov 06, 2003 at 00:10 UTC ( [id://304908]=perlquestion: print w/replies, xml ) | Need Help?? |
princepawn has asked for the wisdom of the Perl Monks concerning the following question:
I am reading in a configuration file which has a string representing the package-qualified name of a DBI
exception handler.
DBI does not accept symbolic references for its HandleError attribute and that is what this string is intended to handle. Therefore, I must give DBI a hard reference and would like to know the most direct way of doing so. Below almost works, but I get a funny error message in my dummy example. the general idea
the dummy code
but it gives a bizarre errmsg:
Back to
Seekers of Perl Wisdom
|
|