What is the problem with what you posted? Why not use DBD::WMI?
In reply to Re: WMI query Exchange Server with Perl by Anonymous Monk in thread WMI query Exchange Server with Perl by Ice-Breaker