$pw = 'TBHxD6$e60r--rjt&'; my $cmd = "NET USE g: \\\\\\ $pw /user:"; warn $cmd; # whoops!! system($cmd); print "done";