COMP284 Perl and CGI.pm Practical
VerifiedAdded on 2019/09/25
|4
|1356
|50
Practical Assignment
AI Summary
This practical assignment requires students to develop a Perl script using CGI.pm to perform a statistical analysis of program code provided via a web interface. The script should accept code either through a URL or direct input, handle UTF-8 characters, and analyze comments and instructions. The analysis includes determining the number of lines of instruction, elements of instruction, non-empty lines of comment, non-trivial comments, and words in comments. The script should also calculate ratios between these metrics and display the results in a table. The assignment emphasizes proper commenting and referencing of external sources. The completed script must be accessible via a specified URL, and the assignment contributes 30% to the overall module grade.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
1 out of 4