#!/usr/bin/env perl
use strict;
use PerlHP;
<% our $length %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;
<html xmlns="
http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
<head>
<title>looooooongcat</title>
</head>
<body>
<% if(!$length=~/^\d+$/){ %>
<form method="post" action="<%= $ENV{SCRIPT_NAME} %>">
<p>
<label for="length">How long is looooooongcat?</label>
<input type="text" name="length" id="length"/>
<input type="submit"/>
</p>
</form>
<% }else{ %>
<p style="white-space:pre;font-family:monospace">
^_____^
/ \
| # # |
\ @ |
\ _|_ /
/ \________
/ ________ ___ \
| ________ \ \__/
| \__/
<%= " | |\n"x$length
%> / \
/ ______ \
| / \ |
| | | |
/ | | \
\__/ \__/
</p>
<% } %>
</body>
</html>