perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: Access to CGI object (was: Use Embperl 2.0 or 1.3.6? (was: Change in behavior of <TH> in 2.0?))
Date Mon, 08 Mar 2004 18:24:26 GMT
Doug Rayner wrote:
> Gerald;
> Are you open to suggestions for changes to Embperl 2.0 at this point?

I am always open to suggestion, also I will main do bugfixing before the
final 2.0 release

> We would like to get access to the temporary files behind the file
> handles provided for file uploads.  We would need access to the CGI
> object used in the function get_multipart_formdata() in
> Unfortunately, the object reference for the CGI object is in a my
> variable and goes out of scope as soon as the function exits.  It
> would be nice if this object reference could stay in scope and
> accessble to the template throughout the whole request.  It could be
> added to the %fdat hash, or put in some other global variable.
> Any thoughts on this?  We would prefer not to hack the distributed
> sources for Embperl to accomplish this.  A supported method for
> accomplishing this would be much preferable.

The latest CVS version adds the CGI object as


because CGI 3.01+ deletes the temp file as soon as it goes out of scope, so
I have to keep the object.

But be warned this is undocumented yet and is likely to change in favor for
a real Embperl request method.


P.S. Please send such mails to the Embperl mailing list

Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:          Voice:   +49 6133 939-122
WWW:      Fax:     +49 6133 939-333
Besuchen Sie uns auf der CeBIT (18. - 24. März 2004)
Halle 6 Stand B38-452

ECOS BB-5000 Firewall- und IT-Security Appliance:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message