|We don't bite newbies here... much|
Calling subroutine with exec() in .cgi scriptby morbid_ru (Initiate)
|on Jan 18, 2006 at 22:53 UTC||Need Help??|
morbid_ru has asked for the wisdom of the Perl Monks concerning the following question:
Here is my code:
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