Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
So, I figured this one out, and it makes me feel really, really, really stupid. The script that forks the daemon was fine. Using system from my webapp was fine. The problem lay in how I constructed the command before passing it to system:
Staggeringly obvious in retrospect...no parentheses around that last line, so Perl was actually concatenating the first two strings together with $ENV{IS_TEST} and setting $cmd to ' test'. Anyways, I forgot to check the basics and immediately assumed the problem must lay in some more complex part of the code. Lesson learned (hopefully!). In reply to Re: Does something in Dancer prevent using the system call?
by Riales
|
|