Jabul
12-22-2005, 04:35 PM
This is something that has been holding me back for a while. When using the GET method in perl, what happens when you address a variable in your script that wont always be used in the address?
For Example, if I have the variables $name, $friend, and $number (Im making this all up and this particualr script most likely has no use.)
Now lets say I only want to know my name, so I click on the link script.pl?name=Jabul but when script.pl runs it checks to see the all the variables values. Will it just skip over these statements if they are if then statements?
I know my questions a little hard to understand, but maybe if you think about how most perl forums are setup it would be easier. If your in the index.pl then you can have a forumid varable, a postid and stuff like that. I'm sorry if Im not clear enough... :(
For Example, if I have the variables $name, $friend, and $number (Im making this all up and this particualr script most likely has no use.)
Now lets say I only want to know my name, so I click on the link script.pl?name=Jabul but when script.pl runs it checks to see the all the variables values. Will it just skip over these statements if they are if then statements?
I know my questions a little hard to understand, but maybe if you think about how most perl forums are setup it would be easier. If your in the index.pl then you can have a forumid varable, a postid and stuff like that. I'm sorry if Im not clear enough... :(