in reply to Re^6: memory use array vs ref to array
in thread memory use array vs ref to array

I'm not sure where this mem comes from.

BTW. I missed/ignored that at first reading. mem() is a function defined in my REPL:

sub mem{ `tasklist /nh /fi "PID eq $$"` =~ m[(\S+ K)$] }

And tasklist is a system utility, which with the above parameters produces:

C:\test>\Perl22\bin\p1 [0]{} Perl> print `tasklist /nh /fi "PID eq $$"`;; perl.exe 2524 Console 1 +9,384 K

And without the /n{o}h{eader} switch gives:

[0]{} Perl> print `tasklist /fi "PID eq $$"`;; Image Name PID Session Name Session# Me +m Usage ========================= ======== ================ =========== ===== +======= perl.exe 2524 Console 1 +9,428 K

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". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.