Gerard has asked for the wisdom of the Perl Monks concerning the following question:
I am having problems with a script I wrote a few months ago. it was running on win 2000 and iis, now it is running on the same box with apache 1.3 which I have just installed for testing. Data Dumper prints out binary rubbish instead of the posted data that I was expecting. When I ran the same script a few months ago I got the results that I expected. The only thing that I have changed that I can think of is the webserver. Do I need to change anything in my script, or what else could be causing this sort of problem?use Data::Dumper; my $q = CGI->new(); my %var = $q->Vars(); my $log_file = 'log.txt'; open(LOG,">>$log_file") || err("Can't open log file: $!"); print LOG "URL: $ENV{REQUEST_URI}\n\n", Dumper(\%var,\%ENV)."\n\n", '=' x 60, "\n\n"; close LOG;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi->vars() unexpected results
by PodMaster (Abbot) on Apr 22, 2004 at 06:13 UTC | |
by Gerard (Pilgrim) on Apr 22, 2004 at 06:21 UTC | |
by PodMaster (Abbot) on Apr 22, 2004 at 06:59 UTC | |
|
Re: cgi->vars() unexpected results
by dave_the_m (Monsignor) on Apr 22, 2004 at 10:59 UTC | |
by Gerard (Pilgrim) on Apr 22, 2004 at 21:32 UTC | |
|
Re: cgi->vars() unexpected results
by diotalevi (Canon) on Apr 22, 2004 at 12:42 UTC |