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


in reply to mapping a network drive

You should grab the command output using backticks instead of system():

my $output = `net.exe use * \\\\server_1212\\d$`; $output =~ /Drive (\w)/; my $letter = $1;

Hope this helps!

Michele.