in reply to Re^2: forks.pm, CGI::App,TT and DBD::mysql
in thread forks.pm, CGI::App,TT and DBD::mysql
This works just fine as soon as I comment out forks.
Then leave use forks; commented out. Problem solved.
That may sound like sarcasm, but it's also good advice. You do not need forks.pm in order to use fork or the forking open.
Read the documentation on forks and you'll discover that it is a way of emulating the threads api. for those situations where threads are (or were) unreliable.
For what you are doing in this snippet, you do not need and should not be using forks.
So stop forking around and stop trying to use the module for things that it was not intended for :)
You might also try reading http://perlmonks.com/index.pl?node=Writeup%20Formatting%20Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: forks.pm, CGI::App,TT and DBD::mysql
by perldragon80 (Sexton) on Jul 31, 2004 at 04:06 UTC | |
by BrowserUk (Patriarch) on Jul 31, 2004 at 05:06 UTC |