develooper Front page | perl.beginners | Postings from December 2002

Dereferencing: help!!!!

Thread Next
December 17, 2002 01:36
Dereferencing: help!!!!
Message ID:

I'm trying to put some data in a postgres database, but it is not so 
easy as I expected....
This is my code:

               foreach $ipaddress (sort keys %ifipaddr) {
                        $ip = new NetAddr::IP "$ipaddress", 
                        $sth4 -> execute ($routerid,

When I execute the code, I get:

Can't bind a reference (NetAddr::IP=HASH(0x85bed10))
But when I execute:
              print $ip->network();
It prints the correct value...

Does someone knows how to store the value in my DB?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About