Perl Script Adjustment: Zero Results Handling

Closed Posted last week Paid on delivery
Closed Paid on delivery

I have a Perl script that searches a CVS file and generates HTML. When this script has zero results, it currently displays a page stating "SORRY there are no RESULTS". I need this behaviour to change: instead of generating a custom error message, I want the script to send a 404 call to the Apache server.

Key Requirements:

- Modify the Perl script to send a 404 call to the server when no results are found.

- Implement a custom error message to be displayed on the 404 error page.

Additional Details:

- No logging of details of 404 errors is required for monitoring or debugging purposes.

- The script should still function as normal when results are found, only altering its behaviour when no matches are found.

- The ideal candidate for this project should have experience with Perl, CVS files, HTML generation and Apache server interactions. A good understanding of HTTP status codes, particularly 404, is necessary.

HTML Perl

Project ID: #38059464

About the project

6 proposals Remote project Active last week