This document presents a Perl script solution for a practical assignment in the COMP284 module at the University of Liverpool. The assignment requires the development of a CGI script using Perl's CGI.pm module to analyze program code provided by the user through a web interface. The script must accept code either via a URL or directly entered into a text field, handle UTF-8 characters, and perform a statistical analysis to determine the number of lines of instruction, elements of instruction, comments, and their respective word counts and ratios. The script then displays the original code alongside a table summarizing the analysis results, formatted for readability. The solution includes considerations for error handling, proper commenting, and adherence to the assignment's specific requirements for output and access rights, demonstrating a robust and functional approach to the code analysis task.