in reply to Re^4: Use of 'our' considered harmful
in thread Use of 'our' considered harmful
Actually, your code closes the $dbh before you ever execute the query! Where as the our version doesn't. With the our version, the user can use $dbh in other functions, because $dbh is a global.
I'm not saying our is required to do this -- it isn't -- I'm just saying you broke the program by blindly switching to my.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Use of 'our' considered harmful
by ysth (Canon) on Sep 24, 2004 at 20:37 UTC | |
by tilly (Archbishop) on Sep 26, 2004 at 07:35 UTC |