in reply to [untitled node, ID 460085]
To clean it up in general I would do it this wayuse CGI::Carp qw(fatalsToBrowser);
I didn't test that, but it should work. But of course thats just one way. perldoc CGI is also a good source of information.#!/usr/bin/perl use warnings; use strict; use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); my $value=param('tapas'); print header; print start_html; print "Your favorite Tapas place in Barcelona was $value"; print end_html;
|
|---|