DreamT has asked for the wisdom of the Perl Monks concerning the following question:
The code above will of course throw an error since we're calling a subroutine that doesn't exist. But, I think that I may have spotted a behaviour that doen't make sense. It seems like one ore more Apache processes are spawned when this happens, which in some cases leads to performance degradation for everyone that uses this script when it happens (consider that a lot of calls are made to the script that produces the same error).# Doing some stuff # .... use CGI::Fast while ($query = new CGI::Fast) { # Doing some stuff # ..... # Calling a subroutine that doesn't exist, in some cases (if $a_condition == 1) { &Undefined_Subroutine(); } } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Fast / Apache - Strange behaviour?
by CountZero (Bishop) on Aug 16, 2012 at 16:06 UTC | |
by locked_user sundialsvc4 (Abbot) on Aug 17, 2012 at 12:27 UTC | |
|
Re: CGI::Fast / Apache - Strange behaviour?
by locked_user sundialsvc4 (Abbot) on Aug 16, 2012 at 12:21 UTC | |
by DreamT (Pilgrim) on Aug 16, 2012 at 12:29 UTC | |
|
Re: CGI::Fast / Apache - Strange behaviour?
by stonecolddevin (Parson) on Aug 16, 2012 at 16:30 UTC |