Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Using user entered data

Question posted by: gilly1471 (Newbie) on July 2nd, 2008 09:28 PM
Yep, new to perl, I started yesterday, but am quickly excelling. I would just like to know how to use user entered data. Let's say I have a programm that calculates the circumference of a circle. The user has to enter in the radius of the circle and then the units of measurement. If the user enters his data into an html page that directs the user to my www.blah.com/blah/circ.cgi, how do u get those numbers to compute in my circumference calculating program.
KevinADC's Avatar
KevinADC
Expert
3,242 Posts
July 2nd, 2008
11:11 PM
#2

Re: Using user entered data
You use the CGI module:

http://perldoc.perl.org/CGI.html

But if you just started learning perl yesterday this is not going to be too easy to understand. You need to get the basics down first: data types, string and math operators, loops, file IO, some regular expression knowledge, perls built in functions, then go on to modules, like the CGI module.

Reply
gilly1471's Avatar
gilly1471
Newbie
2 Posts
July 3rd, 2008
11:03 AM
#3

Re: Using user entered data
Well, I've done all that :S so this should be too hard. I got past Hello World, this should be a piece of cake.

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,088 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Perl Forum Contributors