1.

Tell me some facts about Perl memory management.

Answer»

As Perl programmers declare variables in their program, they TAKE some memory. It is up to the programmer to make sure that the program is utilizing memory in the best possible way. Programmers take care of memory leakage for EFFICIENT programming. Perl has an excellent garbage collector but with an exception. If a programmer uses global variables at all times, RATHER than local variables (where the garbage collector takes care of these variables as they go out of scope), they will end up using lots of EXTRA memory space. It is because the garbage collector will not remove the unused storage and hence the memory locations will remain OCCUPIED unless the computer restarts.



Discussion

No Comment Found