Just another Perl shrine | |
PerlMonks |
Re: Calling subroutine with exec() in .cgi scriptby blazar (Canon) |
on Jan 19, 2006 at 09:28 UTC ( [id://524163]=note: print w/replies, xml ) | Need Help?? |
Calling subroutine with exec() in .cgi script exec, like the underlying system call, just substitutes the current process with another one: i.e. it executes another program and never returns. It is not for executing subroutines. (The most similar thing I can think of that is related to subroutines, is magical goto, but in "standard use" one rarely needs it and good old plain sub call is fine instead.)
In Section
Seekers of Perl Wisdom
|
|