Because it's a Web application, I would like to have all the application files bundled in the one WAR file.
Options:
- Place the perl script inside the WAR file, unpack it on demand, pass the filename of the unpacked script to the perl interpreter.
- Store the perl script as a string constant inside the Java code, write that string constant into a temp file, pass the filename of the temp file to the perl interpreter.
- Like before, but use a pipe instead of writing to a physical file, and make the perl interpreter read either stdin or some special file representing perl's end of the pipe (e.g. /dev/fd/4).
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)