http://qs321.pair.com?node_id=255150


in reply to Perl output to new browser window?

Ok thanks for your comments.

But I am now very confused I found the below code @
http://www.wiley.com/legacy/compbooks/stein/source.html

Which runs a perl script opening a pop window?
So could you clear up my confusion please?
Can I use CGI.pm or not?
Regards
Gareth

#!/usr/bin/perl #file: frames.pl use CGI qw/:standard/; print header, start_html('Popup Window'); if (!param) { print h1("Ask your Question"), start_form(-target=>'answer'), "What's your name? ",textfield('name'), p(), "What's the combination?", checkbox_group(-name=>'words', -values=>['eenie','meenie','minie','moe'], -defaults=>['eenie','moe']), p(), "What's your favorite color? ", popup_menu(-name=>'color', -values=>['red','green','blue','chartreuse']), p(), submit, end_form; } else { print h1("And the Answer is..."), "Your name is ",em(param(name)), p(), "The keywords are: ", em(join(", ",param('words'))), p(), "Your favorite color is ",em(param('color')); } print end_html;