in reply to Re^6: time and mem usage of pgm
in thread time and mem usage of pgm

The doc gives the impression that MSWin32 doesn't include windows7 nor windows8. If it is the case, any way to consider these two versions, too?

What does the function return on those platforms? What does the actual module documentation say? https://metacpan.org/pod/Win32#Win32::GetOSName

Replies are listed 'Best First'.
Re^8: time and mem usage of pgm
by carolw (Sexton) on Mar 17, 2015 at 11:15 UTC

    it works partly under win8. it works for time but for mem, I think it doesn't find the mem value and just prints out mem literally instead of the mem value. Does it come from the code or is it a win8-related problem?

      just prints out mem literally instead of the mem value.

      Could you try the following 1-liner at your console; then copy&paste the results into a reply here please:

      perl -wle" print `tasklist /nh /fi "PID eq $$"` =~ m[(\S+ 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'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

        can't find string terminator "`" anywhere before EOF at -e line 1