![]() |
Exploiting the Information World
|
|
For each exercise that you complete during class you must make record your results to show the TA (or show the TA your screen). If you don't have time to complete everything during class you must record your results and give them to the TA by the next class meeting. |
You can find perl at:
http://www.activestate.com/Products/ActivePerl/. Download and
install the Windows version. IMPORTANT! Keep track of where
perl is installed! By default it will be installed in
c:/perl.
Verify that perl is installed correctly by running the perl interpreter from a DOs prompt (type in the command "perl"). If Perl is not in your path you need to set the PATH variable in your autoexec.bat file, ask for help if you don't know how to do this... Press F6 when you get perl running - this tells perl you are not giving it any input (it is looking for a perl program from standard input).
Write a perl program that converts degrees fahrenheit to celcius.
Write a perl program that prompts for a string and a number, then will output the string the number of times indicated (use the string repetition operator!).