http://www.perlmonks.org?node_id=241241


in reply to WMI with Perl

here's an example from the ASPN mailing lists:
#! perl -w use Win32::OLE; $instances = Win32::OLE->GetObject("winmgmts:")->InstancesOf("Win32_Process") or die "Cannot access WMI"; for my $proc (in $instances) { printf "%5d %7d %s\n", $proc->{ProcessId}, $proc->{WorkingSetSize}/1024, $proc->{Name}; }
haven't tested it to see if it works.

but as others said.. Google is your friend.