You might want to look at using CGI::Application and AutoLoader.
You can then tell CGI::Applicaton the set the functions that you want the cgi to call based on 'run_modes'. And when you enter that 'run_mode' perl auto load the function and call it.
I have not tried this, but in theory it should work, I think.
In reply to Re: executing code in a file
by tantarbobus
in thread [untitled node, ID 192588]
by Samn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |