in reply to Problem to includ a perl file

As BUU and the others have already stated ... this is working exactly as it should. If your test.pl file actually returns a plain text header and VALID JavaScript. You don't need to change your HTML, just the Perl script:
#!/usr/bin/perl -T use strict; use warnings; use CGI qw(:standard); print header('text/plain'), 'window.document.title = "Acesta este continutul fisierului"' ;
But what this buys you beats me ... seems very silly.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)