in reply to Re^4: Setting a type=file parameter in CGI.pm
in thread Setting a type=file parameter in CGI.pm

Perhaps you could write the existing code to accept some data structure other than a CGI object. Then in the CGI that uses it, have something "convert" the CGI object you have into the data structure the new code takes. In your email processing code, you pass data in with the new structure directly.

  • Comment on Re^5: Setting a type=file parameter in CGI.pm

Replies are listed 'Best First'.
Re^6: Setting a type=file parameter in CGI.pm
by Rodster001 (Pilgrim) on Jan 05, 2009 at 17:19 UTC
    The only problem with that is that I kill my consistency. Every function in this particular project takes the same three objects as arguments and I don't want to break from that. I did come up with a work around though, the new function just deals with the attachments as uploads after the old function returns. So, some slight redundancy but only about 15 lines. I can live with it.