Your script is written in a non-UTF8 character set (probably latin1). Your data is written in this character set. When you 'use utf8' Perl tries to interpret the data as UTF8. When it hits the 'é' then it complains since this should be a double byte character.
Have a look at the Encode module. Try out a number of scripts and save the output to a file. If you examine the file using a hex editor you will see the double byte representations of non-ascii characters. The documentation for this module is full of references to UTF8. Also look at perluniintro and friends.
This script takes data from STDIN and writes out the UTF8 converted data to a file.
#! /usr/bin/perl
use strict;
use warnings;
use Encode;
open UTF8, '>utf8.txt' or die;
while (<>) {
my $data = encode("utf8", $_);
print UTF8 "$data\n";
}
close UTF8;