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


in reply to Processing array with suitable options

In this case you can make your life easier by changing the command: wmic can output comma-separated:
wmic product where "Name like '%Provider%'" get IdentifyingNumber, Nam +e, Version /format:csv
then you can split(/,/$name) ...