http://www.perlmonks.org?node_id=249917

markjugg has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I'm writing a module to help validate file uploads using CGI.pm and Data::FormValidator. I'm writing test scripts now, and would like to simulate the file upload so I can test the validation.

I checked to see if there were any tests for this in the CGI.pm distribution and didn't find any. I'm looking for suggestions on how I test CGI.pm file upload functionality from a Perl script. If the solution can work around requiring other modules and net access for the test script, it's a plus.

Thanks!

-mark