title: Can I upload a file with perl?
body: <p>I have a script that needs to send logfiles to a web server.</p>
  
  <p>NOTE:  Server side uploading is already done.  This is the client that needs to upload to the server.</p>
  
  <p>On the server side, I have the typical cgi script that accepts any .zip file I send it under the name "file"  (Example input type="file" name="file" )</p>
  
  <p>So my question is:  Is there an easy way to upload a .zip file to a web server via perl?</p>
  
  <p>Something simple would be ideal, like:
  upload_file('<a href="http://wherever.com/upload.cgi" rel="nofollow">http://wherever.com/upload.cgi</a>', 'somefile.zip');</p>