http://qs321.pair.com?node_id=331576


in reply to I need a list of values for the DBI statement handle attribute TYPE

Are you looking for this little tidbit buried in the DBI POD?

Constants representing the values of the SQL standard types can + be imported individually by name, or all together by importing the + special ":sql_types" tag. The names and values of all the defined SQL standard types can +be pro- duced like this: foreach (@{ $DBI::EXPORT_TAGS{sql_types} }) { printf "%s=%d\n", $_, &{"DBI::$_"}; }
90% of every Perl application is already written.
dragonchild
  • Comment on Re: I need a list of values for the DBI statement handle attribute TYPE
  • Download Code

Replies are listed 'Best First'.
Re^2: I need a list of values for the DBI statement handle attribute TYPE
by Anonymous Monk on Apr 01, 2007 at 17:34 UTC
    > foreach (@{ $DBI::EXPORT_TAGS{sql_types} }) { > printf "%s=%d\n", $_, &{"DBI::$_"}; > } It fails with "use strict", and I can't see how to define that variable.