Subject: | carp if setup called by client? |
I recently gave some bad advice at
http://www.perlmonks.org/index.pl?node_id=136736
I advised to hack and call the setup method in order to keep
a handle on a DBI::db object instead of using the teardown object.
The user didn't need to keep the object, just needed to destroy
it and wasn't using teardown.
It made me wonder if setup() and possibly others should carp
if they were called by the client ... of course this won't
solve someone not RTFM'ing (like me, obviously)
no big whoop,
Jeff Anderson