note
dws
<p>
<i>It does work if I run it in the console using "perl test.pl", but ...</i>
</p>
<p>
But does it work if you do "./test.pl"? The executable bit must be set on the file for it to work as at CGI, on Unix at least. Try
<code>
% chmod 755 test.pl
% ./test.pl
</code>
</p>
430544
430544