By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,178 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,178 IT Pros & Developers. It's quick & easy.

Using user entered data

P: 2
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.
Jul 2 '08 #1
Share this Question
Share on Google+
2 Replies


KevinADC
Expert 2.5K+
P: 4,059
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.
Jul 2 '08 #2

P: 2
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.
Jul 3 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.