- or download this
my $username = trim(param('username'));
...
$dirty =~ s/\s*$//g; # remove trailing whitespace
return $dirty || ''; # return empty string if $dirty is undef
}
- or download this
print q|<html>
<head>
...
</head>
<body>
|;
- or download this
use CGI qw(:standard);
print header, start_html('Logging in ...');