I need some help regarding Perl multi threading.
Can I have the following functionality using multi threads in Perl?
1. Main script calls a sub routine My_1st(), where My_list() requires two or more parameters.
2. My_list calls other sub routine My_1st_inside(), where this My_1st_inside() requires two or more parameters to it and returns a value to My_1st parent sub routine.
3. My_1st() gets the values returned by My_1st_inside() and prints some results.
I am able to achieve this without threads and its working fine except that it is taking much time in a foreach loop. So, I would like to add threads to this.
I tried this but resulting with errors. Is this something that can be achievable using Perl threads?
Any help is appreciated!!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||