morbid_ru has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
Here is my code:
exec ("/path/to/file/filename.cgi"); CORE::exit 1;
This works fine. However how can I call subroutine of filename.cgi?
In other words. With URL ...filename.cgi?action=task1 I call subroutine task1
How to do the same with exec()? This obviously gives an error:
exec ("/path/to/file/filename.cgi?action=task1");Also, how can I path parameters to filename.cgi with exec()?
Such as I want to path $color=green
Thank you
Edited by planetscape - added code tags and formatting
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Calling subroutine with exec() in .cgi script
by Errto (Vicar) on Jan 18, 2006 at 23:00 UTC | |
Re: Calling subroutine with exec() in .cgi script
by brian_d_foy (Abbot) on Jan 19, 2006 at 03:19 UTC | |
Re: Calling subroutine with exec() in .cgi script
by graff (Chancellor) on Jan 19, 2006 at 03:46 UTC | |
Re: Calling subroutine with exec() in .cgi script
by blazar (Canon) on Jan 19, 2006 at 09:28 UTC | |
Re: Calling subroutine with exec() in .cgi script
by kutsu (Priest) on Jan 19, 2006 at 16:10 UTC |