more useful options | |
PerlMonks |
Re^2: new() function: incorrect?by fmerges (Chaplain) |
on Nov 12, 2008 at 10:08 UTC ( [id://723099]=note: print w/replies, xml ) | Need Help?? |
Hi, Actually the worst "constructor" I've seen so far came from someone who considered himself an expert and it was like this:
On top of that also calls like the following from the caller:
And it was not in one module, it was in the whole layer that deals with the DB from a web application running under mod_perl! You can imagine for yourself what sort of strange creatures were also lurking around... Update: Added emphasis on the worst...Regards,
fmerges at irc.freenode.net
In Section
Seekers of Perl Wisdom
|
|