Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Subroutines...

Status
Not open for further replies.

perlone

Programmer
May 20, 2001
438
US
Hello,

I'm creating a new site and I need help with using subroutines. For example, I need to put atleast 2 scripts in one main scripts. That way Icould save space and run better. I see websites with url's like this:
main.cgi?step=Mail. I know you could create this using sub routines but I don't know how. I already tried allexpert.com but they all saying that it's out of their expertise. You think you can help me? Thanks for reading this:)
 
Well if you want to look into posting by 'get' checkout cgi101.com for some instruction
 
Using subroutines has *nothing* to do with creating a URL like

main.cgi?step=Mail

As "jerehart" pointed out, putting variables you are passing to the next script right in the URL is using the "GET" method - if cgi is what you need help with, then look at cgi101.com - if perl subroutines is what you need help with, go to "google.com" and search for "perl subroutine", or if you have perl installed on a *nix machine, just type "perldoc perlsub" at the command prompt.

HTH.
Hardy Merrill
Mission Critical Linux, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top