Engineering Projects/Attendance/perl counting program

From Wikiversity
Jump to navigation Jump to search

First download strawberry perl if on windows machine, otherwise download activestate perl.

To test if the installation is correct, cut and paste this into notepad

print "hello world/n";
$age = <>;

For Windows: Write perl programs in notepad. Click "Save To". Set the "Save as type:" to "all files" rather than the default. Name the program with the extension *.pl so the file name looks something like this "test.pl".

Save it to the desktop or another known folder.

Execute it by double clicking on the program. It will display a black screen with the words "hello world" in it and then wait for you to press enter on the keyboard. Then the black window will close.