in reply to software inventory

am I doing something wrong with my system() call here?
Good question. You should check the status of your system call to find out if you are doing something wrong:
system ("your command here") and die "command failed\n";