Sourav, I apologize on behalf of the group for some of the “answers” (sic ...) that you have lately received here. It is true that this is not a particularly well-designed program. However, it may also be true that you did not write it and/or that there is no business justification for a rewrite, given that, as you say, it is doing a complex time-consuming thing and it works.

I have to strongly disagree with that.

First, who are YOU to apologize on behalf of others? Come on, who do you think you are? You have the right to disagree and please do so if you wish, but don't apologize on behalf of others, this is just ridiculously stupid.

Second, the program presented is poorly written, to say the least. Saying that fact is an acceptable “answer” (sic ...), whether you agree or not.

Third, judging from the OP's post, there is a problem, it does not work properly. So please don't say it works. It obviously doesn't.

Fourth, when you have such a messy program, there will necessarily be one day where you have to refactor it, may be it is time. Or maybe you want to do it next time. But you know it will have to be done.

Fifth, the OP stated that the program presented is not the real one, but some pseudo-code; nobody knows if this pseudo code exhibits the same problem as the real code. Should I care? I don't see why...

I could add another half a dozen other objections to your post, but I think that I have made the point clearly.


In reply to Re^2: How to free memory used by previous program? by Laurent_R
in thread How to free memory used by previous program? by sourav8888

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.