henribaeyens wrote:
> On Fri, 15 Feb 2008 18:16:38 +0100, Gunnar Hjalmarsson wrote:
>> henribaeyens wrote:
>>> I'm trying to figure out a way to output, for debugging purposes, the
>>> contents of a multipart form-data.
>>
>> print <STDIN>;
>
> nice guru ****!
>
> I managed to come up with
>
> while(<STDIN>) {
> chomp($_);
> print "$_<br>\n";
> }
You didn't mention that you are using a CGI script to inspect the data.
It's not advisable to display unparsed form data as HTML. If you are
using a browser, try this instead:
print "Content-type: text/plain\n\n", <STDIN>;
--
Gunnar Hjalmarsson
Email:
http://www.gunnar.cc/cgi-bin/contact.pl