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

What is the easiest way to send virtually any kind of file attachment via a form? Please don't direct me to the super search, I've read all of them and none of them help my problem.

I want to have an upload field in my cgi form then from this have that file attach be sent with the email regardless of the file type. Even if you have to specifiy the file type first I still want to know how to do this via a form, all the examples were paths to files already on the server.

Any help would be much appreciated.