D
Dave Stallard
I'm working with a MySQL database via Perl DBI, and want to fetch the
value of an attribute of SQL boolean type. I would naturally imagine
this could come back as '0' or '1', but what comes back is instead
something weird that prints as '^@' or '^A' depending upon whether
it's true or false (I forget which is which). This thing, whatever
it is, appears to be a scalar, not a reference, but I don't know how
to refer to it in Perl. I'm using fetchrow_hashref, but I don't
think it matters.
Does anybody know what's going on here? (Apologies if there is a
more appropriate Perl DBI newsgroup which I missed).
thanks,
Dave
value of an attribute of SQL boolean type. I would naturally imagine
this could come back as '0' or '1', but what comes back is instead
something weird that prints as '^@' or '^A' depending upon whether
it's true or false (I forget which is which). This thing, whatever
it is, appears to be a scalar, not a reference, but I don't know how
to refer to it in Perl. I'm using fetchrow_hashref, but I don't
think it matters.
Does anybody know what's going on here? (Apologies if there is a
more appropriate Perl DBI newsgroup which I missed).
thanks,
Dave