CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



Vincent Jansen
Deleted

Mar 2, 2000, 2:39 AM

Post #1 of 3 (707 views)
Executing new program? Can't Post

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

Post #2 of 3 (707 views)
Re: Executing new program? [In reply to] Can't Post

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

Post #3 of 3 (707 views)
Re: Executing new program? [In reply to] Can't Post

It worked!
Thanks for replying so soon.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives