Alright, I had a better look at the code, and I must say it's rather confusing, sorry. :rolleyes:
Anyway, I have no idea why you're trying to use read(), when open is probably what you really want to do.
The read function was designed to be the equivalent of the UNIX fread command,
which enables you to read arbitrary number of bytes into a scalar variable.
The syntax is something like: read (filevar, result, length, skipval);
Where "skipval" is optional.
Not going into any more details on that function here.
I got rid of the errors for you,
you can see the file by clicking
this link .
Hope that helps a little bit.
Edit:
HTML::Template