kumaran76 has asked for the wisdom of the Perl Monks concerning the following question:

hello, I have a question regarding using PERL with HTML frames. Please find below the perl program. --------
#!/usr/local/bin/perl print "Content-type:text/html", "\n\n"; print "<html>"; print "<head><title> Report </title></head>"; print "<frameset rows=\"15%,85%\">"; print "<frame src=\"menu_bar.html\" name=\"topmenu\">"; print "<frame src=\"O49361.pdf\" name=\"mainwindow\">"; print "</frameset>"; print "</html>";
------------- When this perl program is run (i.e, when I point the web browser to this perl program), it tries to execute the menu_bar.html and the O49361.pdf instead of just displaying the 2 files. I just want the 2 files to be displayed as is instead of it getting executed. How do I do that? Thanx in advance, -Kumaran

Replies are listed 'Best First'.
Re: Using frames with Perl?
by thealienz1 (Pilgrim) on Nov 28, 2001 at 01:38 UTC

    It sounds like that its trying to excute the .pdf and .html files in the cgi-bin directory. Just giv the full URL to them in the src.


    "No officer I have nothing to hide... Sorry, whose in the trunk that would be my wife... No, she likes to ride in the trunk... Your not going to even give me a warning?"