It's quite strange, and does seem like a bug. I don't have access to a newer version of CGI just now, so not sure if it's been fixed (no reference to it in the change log). But I did find a workaround for anyone who's interested:
>perl -e 'use CGI; print $CGI::VERSION;'
3.15
>perl -e "use CGI; print CGI::start_form({enctype=>'test'});" # Seems
+broken
<form method="post" action="" enctype="multipart/form-data" enctype="t
+est">
>perl -e "use CGI ( -no_xhtml ); print CGI::start_form({enctype=>'test
+'});" # A non-ideal solution
<form method="post" action="" enctype="test">
>perl -e "use CGI; print CGI::startform({enctype=>'test'});" # Don't k
+now why it works, but it does...
<form method="post" action="" enctype="test">
Note that startform() is documented as an alias of start_form(), and the source code does seem to support that.
I also got the same results with v3.11
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.