12345678910111213141516171819202122
#!/usr/bin/perluse strict;use CGI;my $q = CGI->new();my $filename = $q->param('upload');print "Content-Type: text/html\n\n";print qq~<html><head></head><body>[$filename]<form action="upload.pl" method="POST" enctype="multipart/form-data"><input type="file" name="upload" /><input type="submit" /></form></body></html>~;