in reply to How to call external scripts from a CGI-script in taint mode?

I don't know if this would work for the environment you're in (and who developed script.pl and what it does), but have you thought about putting the functionality of the script into a Perl module and just useing that module in your CGI script? In addition to not having to worry about the taint problems you're having, it should also be a little faster as you don't have to start up another Perl interpreter every time (and if you use mod_perl, the module wouldn't even have to be loaded every time).

I guess it just sounds kinda weird to me to call a Perl program from within a Perl program. :-)

Replies are listed 'Best First'.
Re: Re: How to call external scripts from a CGI-script in taint mode?
by professa (Beadle) on Apr 05, 2003 at 08:57 UTC

    You're right, normally I wouldn't call a Perl program from within a Perl program. ;-)
    The background is that I have developed a tool which is normally run via commandline and this tool shall now be made available via web to users, so the easiest way to integrate the existing tool into a www-environment was to write a CGI-script fetching all the data and passing it to the tool. :-)

    Micha