Problems with Referenzes

2001-09-26 Thread Ulle Siedentop

I try to understand references in perl.

 $try = test;  # Scalar $try conains value test
 print $try; # prints test

 $try_ref = \$try; # Scalar $try_ref contains reference to
$try
 print $try_ref; # prints SCALAR(0x1234567)

 print $$try_ref; # prints test

Now I would like to do something similar with a hash. For
example:

 $name{Jackson} = Michael; # key = Jackson, value =
Michal
 $name{Wilder} = Billy; # key = Wilder, value = Billy
 print %name; # prints JacksonMichalWilderBilly

 $try_ref = \%name; # Scalar $try_ref contains reference to
hash %name
 print $try_ref; # prints HASH(0x7654321);

Now I don't know how or I don't understand how to get any
key or value back from the reference $try_ref???




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Urgent !!! installing Storable.pm

2001-09-07 Thread Ulle Siedentop

- Original Message -
From: Rajeev Rumale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 7:09 AM
Subject: Urgent !!! installing Storable.pm


 Hi,

 I need to install and use the Storable.pm in my machine.
I am useing Active
 Perl on Win2k machine.

use ppm (perl package manager). you will find in the \bin
subdirectory of your perl program directory.


 I have not done this before.  Its urgent, kindly let me
know the procedure
 for same.

 rajeev


 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: PostgreSQL DBD setup

2001-06-27 Thread Ulle Siedentop

Had just yesterday the same problem. Did not get DBD::Pg
working using it with  Suse Linux 7.0 Postgres RPM
Distribution.

It might be easier to use Postgres source distribution
instead of using a RPM distribution. After compiling
Postgres as described in the INSTALL file i had to set the
environment variables as follows:

export POSTGRES_INCLUDE=/usr/local/pgsql/include
export POSTGRES_LIB=/usr/local/pgsql/lib

In the same terminal session you should run the installation
process of DBD::Pg.

Good Luck!

Ulle

- Original Message -
From: Geraint Jones [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 3:08 PM
Subject: PostgreSQL DBD setup


 I've just spent a frustrating few hours looking for the
answer to my problem
 and have decided to give up and ask you guys. The docs for
the Perl module
 DBD-Pg-1.00 say I should set the following environment
variables:
 POSTGRES_INCLUDE and POSTGRES_LIB. The problem is, being a
Linux newbie I
 don't know where environment variables are stored.

 Geraint.