in reply to Win32::TieRegistry, command-line vs. Web page

You fogot to print your header. Add this line of code before you print anything to a web browser.
print "Content-type: text/html\n\n";
P.S. Please use <code> and </code> around your code.