Hi monks
How to find the size of memory taking the executing script, see below example
open(FH,"file.txt") or die "file not found"; my $line=0; my %hash = undef; while(<FH>) { $hash{$line} = undef; #6ht line $line++; } close FH; ##### # Here i want print the total memory occupied by this script ####
Actully, i running this script in windows, and observed the available memory under the physical memory in taskmanger. So gradully decreasing, that means the script taking memory, that taking memory want to print, once completed the script the available memory as normal in taskmanager. And when i commented the 6th line in script, its not taking that much memory becaz of hash.
So, please tell me, how to know the memory that dynamically allocating in the script and print the memory at end of script
In reply to Allocated memory to Script by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |