Home: Perl Programming Help: Beginner:
Executing new program?



Vincent Jansen
Deleted

Mar 2, 2000, 2:39 AM


Views: 2139
Executing new program?

Hi,

I'm very new to Perl.
I wonder if anyone can tell me how to finish one perl program and start a new one with GET string attached to it.

Thanks!


darian
Deleted

Mar 2, 2000, 2:52 AM


Views: 2139
Re: Executing new program?

If your looking to start another program from the end of your first program and have the variables tied into it you can do a redirect.

print "Location: myprog.pl?first_var=$first_var&second_var=$second_var \n\n";

Just make sure your:

print "Content-type: text/html", "\n\n";
line is not above this line. You can put the redirect line in it's own sub if need be to keep it away from the line:

print "Content-type: text/html", "\n\n";

[This message has been edited by darian (edited 03-02-2000).]


Vincent Jansen
Deleted

Mar 2, 2000, 3:33 AM


Views: 2139
Re: Executing new program?

It worked!
Thanks for replying so soon.