in reply to Framing my scripts
As this is clearly a CGI script, couldn't you just use a parameter and do
which would mean you just had one big script?if{$q->param('mode' eq 'foo')}{ # do some stuff } if{$q->param('mode' eq 'bar')}{ # do some other stuff }
If you don't like that, why not
which will leave you one small script which calls others as required?if($mode eq 'foo'){ require 'foo.pl'; }
You could even do this:
But it's got "security hole" written all over it.require "$mode.pl";
Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
|
|---|