undef $^E; undef $!; undef $?; print "using system \n"; system("net use v: \\\\SERVERNAME\\SHARENAME"); print "dollar caret E reports $^E \n"; print "dollar Exclamation mark reports $! \n"; print "dollar question mark reports $? \n"; print "using backticks \n"; `net use v: \\\\SERVERNAME\\SHARENAME`; print "dollar caret E reports $^E \n"; print "dollar Exclamation mark reports $! \n"; print "dollar question mark reports $? \n"; #### using system System error 85 has occurred. The local device name is already in use. dollar caret E reports The system cannot find the file specified dollar Exclamation mark reports dollar question mark reports 512 using backticks System error 85 has occurred. The local device name is already in use. dollar caret E reports The pipe has been ended dollar Exclamation mark reports dollar question mark reports 512