OK, but besides being wrong about hashes of array, this is also not a DBI
question.  I would encourage people not to answer the questions, but some
newbies do anyways.  Please refer all off-topic questions to appropriate
places, rather than trying to answer.

Ilya

-----Original Message-----
From: Ram Rangavajhula
To: 'Jeff Seger'
Cc: '[EMAIL PROTECTED]'
Sent: 8/8/01 8:40 AM
Subject: RE: Plz Help!!

Hi Jeff,

I have an hashes of array like
%who = (
          'Name' => {'Ram', 'Venky', 'Shiva'},
          'Project' => {'telesales', 'e-commerce', 'sonystyle'},
          'Company' => {'Sony', 'Satyam', 'Frontier'}
        ) 

and I want to pass this hashes of array from one form to another as a
hidden
variable and wants to read this in the next form. I tried so many ways
like
passing it as a reference, using array of arrays etc.,. But couldn't
succeed. Could you or your perl team could help me in resolving this. If
possible, please provide with an example.

Thanks in advance,

Ram

-----Original Message-----
From: Jeff Seger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 8:19 AM
To: Ram Rangavajhula
Cc: '[EMAIL PROTECTED]'
Subject: Re: Plz Help!!


Apparently, you do not have the environment variables set correctly.
How
are
you going about setting them?  They need to be in the web server's
environment
in order to use them in a  CGI script.  In reality this is more of a CGI
question than it is DBI.

Try running this simple script in your browser to find out what is
really in
your web server environment.  If they are not in there, and they
probably
won't
be, read your web server's documentation to find out how to set
environment
variables for the web server.

#!/usr/bin/perl -w
use CGI qw{:standard};
print start_html;
foreach (keys %ENV)
        {
        print "$_ = $ENV{$_} <br>\n";
        }
print end_html;


jeff

> Hi Tim,
>
> I wrote a small program in perl using Oracle as backend DB on Solaris.
I
> installed DBI and DBD correctly. When I tried to run the perl file
from
the
> command prompt its executing correctly but the same file when tried to
> execute from the browser it says "500 Internal Server Error".  And
from
log
> file what I can see is, "ORACLE_HOME environment variable is not
set!".
But
> when I execute a test perl program(without any DB connections) it
executes
> normally.
>
> Could you please help me in getting my program executed from the
browser?
> FYI, I included ORACLE_HOME and ORACLE_SID in the environment
variable. I
> also included the same in httpd.conf on the server. But still the same
error
> message. WOuld really appreciate if you could help me in getting this
error
> resolved.
>
> Thanks in advance,
>
> Ram

Reply via email to