#!/usr/bin/perl use CGI ':standard'; use strict; use warnings; use CGI::Carp 'fatalsToBrowser'; # use only for testing print "Content-Type: text/html; charset=utf-8\n\n"; open FILE, '<:encoding(utf8)', '/var/log/mail.log' or die $!; my @file = reverse ;