in reply to Re: Re: Re: DBI script runs from command line, not from CGI
in thread DBI script runs from command line, not from CGI
When I print out @lines, it prints out the file I just uploaded. Also, this bit of error checking seems to workwhile(<$infile>){ push (@line, $_); }
because if I don't enter a filename, I get the error "File was not uploaded correctly."my $infile = upload ('file') or die "File was not uploaded correctly\n +";
I can print out @ips in the results page, but then I tried this:for $i (keys %data) { push (@ips, $i); }
and @names would not print out. I also tried this:for $i (keys %data) { push (@ips, $i); for $j (keys %{$data{$i}{ports}}) { push (@names, $data{$i}{cname}); } }
and now @ips does not print out. I tried the last two bits of code in a non-CGI script, and they both print out as expected. Do you think I stumbled on a possible bug? I would appreciate any suggestion since this is driving me crazy.for $i (keys %data) { for $j (keys %{$data{$i}{ports}}) { push (@ips, $i); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Possible Bug?
by tachyon (Chancellor) on Apr 16, 2002 at 21:32 UTC |