[sf-perl] 100 levels deep in subroutine calls!

Bill Moseley moseley at hank.org
Tue Jun 19 13:56:18 PDT 2007

On Tue, Jun 19, 2007 at 11:54:23AM -0700, Loo, Peter # PHX wrote:
> What I have learned today is that Perl has a default recursive setting
> of 100.  It turns out that someone had removed the Oracle path
> definition file that the program needed and when it couldn't find the
> file, it went to perform the email notification sub-routine.  The
> problem is that the email notification sub-routine also require the
> Oracle path to be set so it also calls this sub-routine that reads this
> file to set the Oracle paths.  So the program quickly reached the
> limitation of 100.  From this exercise I was able to identify a flaw in
> the design of the notification sub-routine.

Programs emailing on error is a flooded inbox waiting to happen.

Bill Moseley
moseley at hank.org

More information about the SanFrancisco-pm mailing list