Write a program in PERL that runs under Unix (on
cegt201 or other machine. The program should
run the Unix command last and tap
to its output (use of pipeline to read). The program should
track how many time each user logged in, and produce (print to
the screen) a table sorted in the descending order. Use of a
hash table to count user log ins is suggested.
Since it is your first assignment in PERL please check as soon as possible if you can run programns in PERL even if you plan to work on this assignment later. Submitting the correct program by the non-extended deadline may require some reading ahead but it will result in a small extra credit.
The following extra credit opportunities are available in this homework assignment:
Attach all source code in files with proper names and extensions (*.html, *.java, *.pl, *.php, .htaccess e.t.c.). Do not ZIP files together or include compiled files (e.g. *.class). In case of dynamic Web pages (JavaScript or CGI) or Java applets also send the complete URL (including http://) that points to a page on your Web site that demonstrates your homework. Send your homework via e- mail to the instructor at olekmali at cegt201.bradley.edu. Please set the message subject to: web-hw9.
Thank you.