in reply to How to free memory used by previous program?

Hi, If you like to read, some links about memory management techniques and code quality ...

Its FAQ :)

  1. Why it's stupid to `use a variable as a variable name'
  2. A More Direct Explanation of the Problem
  3. What if I'm Really Careful?

Tutorials: Variable Scoping in Perl: the basics, Coping with Scoping , Mini-Tutorial: Perl's Memory Management, Lexical scoping like a fox, Read this if you want to cut your development time in half!

Good luck

  • Comment on Re: How to free memory used by previous program?

Replies are listed 'Best First'.
Re^2: How to free memory used by previous program?
by sourav8888 (Initiate) on Mar 29, 2014 at 08:26 UTC

    Sorry if I am wrong. It is a pseudo code that I have posted. In the real code all the variable names are not the same what I have given here. So if you are telling me that $var1 ideally not correct to assign a variable name, then I am not doing that thing. Please correct me if I am not able to understand what you are telling.

      Well, you posted some code ... which you didn't say was pseudocode ... which isn't written to cope with scoping ... three programs pasted into one file , no indentation ...

      All I was trying to say is read these tutorials and learn from them, learn about scoping, learn about perls memory management...

      But as you said, its pseudocode , so... well, I really don't have anything more specific to add

      Have a nice day , I wish you all the best