in reply to Re^5: Making a variable in a sub retain its value between calls
in thread Making a variable in a sub retain its value between calls
We disagree on what we consider general programming practice vs. programming for special cases, but it seems to me that this is a tomayto-tomahto difference of opinion.
Update: Perhaps I should clarify that, most of my programming is scripting, not module-writing, and of the module writing I do, 90% of it is OO classes. In the case of scripts, INIT is perfectly fine; it gives me a hook that I know will happen after all the BEGINs I have scattered throughout my code. In my OO code I rarely if ever need static variables.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Making a variable in a sub retain its value between calls
by ihb (Deacon) on Apr 19, 2005 at 00:44 UTC | |
by tlm (Prior) on Apr 19, 2005 at 01:22 UTC | |
by ikegami (Patriarch) on Apr 19, 2005 at 04:49 UTC | |
by tlm (Prior) on Apr 19, 2005 at 05:46 UTC | |
by ikegami (Patriarch) on Apr 19, 2005 at 19:09 UTC | |
by ihb (Deacon) on Apr 19, 2005 at 16:08 UTC | |
|