in reply to automating web upload ?

For automating web based task, LWP is the basic suite. File upload is a form of POST, you still have to compose the upload "message body".

A web search revealed that the script cpan-upload makes use of an LWP::UserAgent to upload files: check the sub pause_add_files.