User will type the remote share on the command prompt as argument (For example: \\server\sharename). I want to login to that share and get the filenames in that path. [For example: if the sharename is \\abc\def, I have to log into that and get all the filenames in def directory. How should I proceed ? What modules should I use ? I figured out that for getting the filenames, I can use FILE::FIND but what to do with connection ?