CS701 : Software Practice and Experience Laboratory 2004-2005


Assignment 2 : perl

Some References

Perl Unleashed
Perl by Examples
Perl Manual
CSE docs

Outline of Assignment 2

Assignment 2 will consist of three parts.

PART A

For the given squid log file extract the following information:
The columns of the squidlog data are listed in the order of appearance as under:
timestamp, time elapsed, client ip, status/responce code, data size, method of access, url, identity, hierarchy neighbor, file mime type.

Get the Squid log file from here.
NOTE: The IPs should occur in sorted order in the output for each of i) to vi). Generate the report in suitable format. Proper error handling should be done.


PART B:

For the given bib file generate one html page for each entry. Also generate an index page which will have links to all the "single bib entry html" pages. These links should be the title of the bib entry. bib file will be provided shortly.

Example bib file and corresponding HTML files


OR


For the given bib file generate html page. The html page should be same as that of bibtex generated ps file output.

Example bib file 1 and bib file 2

NOTE: you can write a single program for both parts A and B (Process depending on file extension). Modular and well documented coding will fetch higher credit.

PART C:

Write a client server program in perl. The server should have two text files. one containing user ids with passwords. Other with user name and exam marks.

When a client connects to the server, it should authenticate the client using password. Then client can then provide with an exam number. The server provids clients marks for particular exam and the class average for that exam.

Sample files: Password file, Marks file


Release Date : Sunday, 15 August
Submission Deadline : Friday, 27 August 11:59:59 pm
Note: You can submit only once. Multiple submissions are not allowed.