|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: Create a separate process with a sub...by BrowserUk (Patriarch) |
| on Aug 15, 2003 at 06:25 UTC ( [id://284116]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Take a look at threads. If you are using AS, then the threads module is locate under the "Pragmas" section of the "Table of Contents" in the left-hand frame of the html docs. If all you want to do is run the sub standalone to completion, then that is as simple as
If you need to communicate between your main code and the subs whilst it is running, then life gets a little more complicated. If you give a clearer picture of what the sub is going to be doing (like the code:), then it may be possible to give a better example. Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller If I understand your problem, I can solve it! Of course, the same can be said for you.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||