sql - DBI: disconnect - question -


Would you call disconnect -code as part of a line-nois or would you Will it drop it? this is?

  Use DBI; My $ dbh = dbi- & gt; Connect ... ... END {$ dbh- & gt; Disconnect or $ dbi :: irisir if $ dbh; }    

If you are exiting your program then the clear distinction from the database is strictly It is not necessary that after all your work but it is a good idea, especially in the programs in which you have multiple connections or take multiple sequential connections.

See for more information.

Comments