I have tried something like this below but the problem is sometimes the subroutines executes incorrectly means i am writing an output to the file It could not able to do that successfully.
There are at least 3 problems with your post:
- The code you have posted is incomplete.
You have no use threads;
You don't show where the variables $outputfile1 & $outfutfile2 are set.
There are also a bunch of other variables that aren't declared:
Global symbol "$outputfile1" requires explicit package name at junk.pl
+ line 28.
Global symbol "$app_num_common" requires explicit package name at junk
+.pl line 46.
Global symbol "$app_string_common" requires explicit package name at j
+unk.pl line 54.
Global symbol "$app_num_iis" requires explicit package name at junk.pl
+ line 64.
Global symbol "$app_string_iis" requires explicit package name at junk
+.pl line 71.
Global symbol "$app_num_powerpath" requires explicit package name at j
+unk.pl line 79.
Global symbol "$app_string_powerpath" requires explicit package name a
+t junk.pl line 86.
Global symbol "$outputfile2" requires explicit package name at junk.pl
+ line 115.
- You do not explain what you mean by "sometimes the subroutines executes incorrectly".
- And you need to get some help with phrasing your post in English, because it is very difficult to understand what you mean by:
"means i am writing an output to the file It could not able to do that successfully."
Unless the code is complete; we cannot work out what might be wrong from that.
Unless you explain what you mean by "executes incorrectly", we can only guess what might be going wrong.
We realise that English is not your native tongue, but if we are to understand you, we'll need you to get some help with it.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
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.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||