in reply to Using Perl with Samba Modules

The module you're talking about is probably Filesys::SmbClientParser.
The SYNOPSIS seems to cover all your questions?

Also take a look at Filesys::SmbClient.

It has an nice example you could look at:

smb2www-2.cgi
A CGI interface with these features:
browse workgroup ,share, dir, read file, upload file,
create directory, unlink file, directory

Teabag
chmod 666 *.*
'cause everyone should have the right to read and write!