hw can i count the number of character in a file by perl

i want to count the number of character contained in afile using perl cript help me out

$size = (stat("/path/to/file"))[7];

Jean-Pierre.