more useful options | |
PerlMonks |
Re^7: Making a variable in a sub retain its value between callsby ihb (Deacon) |
on Apr 19, 2005 at 00:44 UTC ( [id://449076]=note: print w/replies, xml ) | Need Help?? |
I assure you, it certainly isn't a tomayto-tomahto difference of opinion. This isn't about opinions. This is about not putting extremely excessive limitations on your code without reason. I get the feeling that you don't realize how far the consequences propagate -- the consequences go far beyond your reach as a module author. (Yes, the world will probably end, too. ;-)) Any user that uses your module will be effected by this completely useless limitation. See CHECK and INIT under mod_perl and call a modules INIT-section for examples of when INIT can cause trouble. (The second problem is completely unnecessary and wouldn't have been a problem if the author would've understood the purpose of INIT, as I point out in my reply.) Reply to the update: I'm curious. When do you need to use INITs to delay execution after all BEGIN blocks in scripts? ihb
See perltoc if you don't know which perldoc to read!
In Section
Seekers of Perl Wisdom
|
|