Hi Monks,
I've got a Perl script (script1.pl) which, amoung other things, does:
do 'script2.pl';
script1.pl is called from a web browser to create a web page.
What are my options for passing a parameter to script2.pl?
I've tried things like:
do 'script2.pl 123';and
do 'script2.pl&var1=123';but they both don't work (they don't give an error message, but script2.pl doesn't get run).
Until now, I've been working around this by doing:
our $var1 = 123;before the 'do' command. Is there a better way to pass a parameter to script2.pl with 'do'?
Thanks.
In reply to do script2.pl with parms by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |