in reply to Re^3: OUR declaration
in thread OUR declaration
While there are differences between using my and our for global variables, in my experience they don't come into play in most scripts unless they're run under something which turns all your subroutines into inner subroutine, like mod_perl. That's why I suggested using our for global variables, since it works the same in both scenarios.
My understanding is the our was a right and proper way to declare package globals.
Are there problems you're aware of with using our for package globals under mod_perl or anywhere else?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: OUR declaration
by perrin (Chancellor) on Sep 25, 2006 at 15:34 UTC | |
by ikegami (Patriarch) on Sep 25, 2006 at 15:51 UTC | |
by perrin (Chancellor) on Sep 25, 2006 at 16:09 UTC | |
by ikegami (Patriarch) on Sep 25, 2006 at 16:29 UTC | |
by perrin (Chancellor) on Sep 25, 2006 at 16:43 UTC | |
|