On Saturday, 16. September 2006 12:09, you wrote: > Temporary files are implicitly closed when 'you launch another program > from within your script', to quote the Camel Book - and with the plugin > architecture of Ax2, this seems to be the case. So even though I've > tried modifying server_file to accept a filehandle instead of a > filename, the filehandle of my temporary file is closed when it reaches > server_file.
AxKit2 doesn't call any external processes. Plugins _are_ plain perl modules, with a regular package nanme and everything -- we just hide the verbosity from you. There must be a different reason why you see that behaviour. > And handing a memory image to server_file means even heavier > modification. Actually not -- according to 'perldoc -f open', passing a reference to a scalar instead of a file name will make perl >= 5.8.0 read data from that scalar. $hd->filename(\$content) might do the trick. -- CU Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]