binmode STDIN; # CGI::Minimal will freeze without it with multipart/form-data forms my $cgi = CGI::Minimal->new;