[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Perl Doubt



Hi All!

I've just started learning perl.

I have a file called read_art.pl which takes a parameter for the name of the file and reads the article. i want to have a rate this article link which rates it. for that, i plan to write a file, say rateit.pl now, when i click on rate it, it will call the perl file, say as, rateit.pl?val=2 (2 is the name of the article file). this file (rateit.pl) will contain the form required to rate it. now i want the same file to create the form and do the rating. that means that when i rate, it will call rateit.pl?val=2&rating=5. so, how do i make the same pl file distinguish the two diff calls?

Also, what is "use CGI"? Seems similar to creating an object of a class in C++. Where do i get info on the various functions in CGI?

Thanx in advance.

Adityan
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.