http://qs321.pair.com?node_id=178891

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

Please help Monks!

As part of a CGI script I'm writing (using CGI.pm of course), I need to print up a form to upload a file. That's the easy part, I just do something like this:
print <<EOP; <form enctype="multipart/form-data" method=post> <input type=hidden name=navigateTo value=upload> <p align=center><input type=file name="file"></p> <p align=center><input type=submit value=Upload></p> EOP

So the user enters some filename like C:\My Documents\somefile.txt and clicks Submit.

But now what do I do to actually get the file?