in reply to RE: Win32::MemoryInfo
in thread Win32::MemoryInfo
Whew! Sounds like I know what I'm doing this morning. All great suggestions, and they should be pretty easy to implement.
I do have one question about your suggestion of letting the user specify what values are wanted back. The only thing I can think of off the top of my head is to have the user fill a hash with certain values, i.e. "TotalPhysMem" => 0, "AvailPhysMem" => 0, etc. Then have the function only fill in the values that are present in the hash. How do I get the hash to the function? Do I need to change the prototype from
@returns = MemoryInfo();
to
Guildenstern
Negaterd character class uber alles!
I do have one question about your suggestion of letting the user specify what values are wanted back. The only thing I can think of off the top of my head is to have the user fill a hash with certain values, i.e. "TotalPhysMem" => 0, "AvailPhysMem" => 0, etc. Then have the function only fill in the values that are present in the hash. How do I get the hash to the function? Do I need to change the prototype from
@returns = MemoryInfo();
to
?MemoryInfo(%returns,"M");
Guildenstern
Negaterd character class uber alles!
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: RE: Win32::MemoryInfo
by tye (Sage) on Aug 31, 2000 at 19:24 UTC | |
by Guildenstern (Deacon) on Sep 01, 2000 at 00:48 UTC | |
by Guildenstern (Deacon) on Aug 31, 2000 at 20:02 UTC | |
by tilly (Archbishop) on Sep 01, 2000 at 21:57 UTC |
In Section
Code Catacombs