in reply to Re^2: %ENV is returning a blank
in thread %ENV is returning a blank
Sorry, I posted the above in a hurry before I went to work, I therefore got the post and get methods mixed. I have tried both, post and get, and both give me empty data back.
Instead of your program, try something like this instead
#!/usr/bin/perl -- use strict; use warnings; use CGI; use Data::Dumper; #zum debuggen Main( @ARGV ); exit( 0 ); sub Main { my $cgi = CGI->new; print $cgi->header(); # Write HTTP header print $cgi->start_html, $cgi->b(rand time, ' ', scalar gmtime), '<table border="1" width="%100"><tr><td>', $cgi->Dump, '</td><td><div style="white-space: pre-wrap; overflow: scroll;">', $cgi->escapeHTML( Dumper( $cgi ) ), '</div></td></tr></table>', CGI->new( \%ENV )->Dump, $cgi->end_html; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: %ENV is returning a blank
by irvy (Initiate) on Aug 19, 2011 at 07:22 UTC | |
by Anonymous Monk on Aug 19, 2011 at 07:36 UTC | |
by irvy (Initiate) on Aug 19, 2011 at 07:51 UTC | |
by ikegami (Patriarch) on Aug 19, 2011 at 07:57 UTC | |
by irvy (Initiate) on Aug 19, 2011 at 08:05 UTC | |
| |
by Anonymous Monk on Aug 19, 2011 at 08:16 UTC | |
by irvy (Initiate) on Aug 19, 2011 at 09:02 UTC | |
|