RenardBleu has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI::Lite; my $cgi = new CGI::Lite; my %in = $cgi->parse_form_data; my $text_value = ''; print "Content-type: text/html\n\n"; foreach my $k (keys %in) { $text_value .= "$k => $in{$k}\n\n"; } my $fichier = '../public_html/debug.html'; open (FICHIER, '>', $fichier) || die ("Writing $fichier failed"); print FICHIER $text_value; close (FICHIER);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: displaying all data received on a web script
by choroba (Cardinal) on Dec 19, 2014 at 10:31 UTC | |
|
Re: displaying all data received on a web script
by hippo (Archbishop) on Dec 19, 2014 at 12:10 UTC |