use strict; use warnings; open my $fh, "<", '\\\\MYCOMPUTER\\root\\cimv2:Win32_LogicalDisk.DeviceID="G:"' or die $!;