in reply to Re^11: {KOHA}Parse XML and assign to variables.
in thread {KOHA}Parse XML and assign to variables.

It gives me what I expect. But When I CallAddmember function.It add HASH to database.I think the problem is I cannot get real value of the HASH reference.
  • Comment on Re^12: {KOHA}Parse XML and assign to variables.

Replies are listed 'Best First'.
Re^13: {KOHA}Parse XML and assign to variables.
by Corion (Patriarch) on Sep 15, 2015 at 13:06 UTC

    Then we will need to look at a very minimal sample of your call to AddMember and how you retrieve the data from the database again. For example, the following program will insert data into the database:

    # Use whatever modules KOHA needs: use ...; AddMember( firstname => 'scolife', lastname => "scolife's last name", ... );

    If that program works, then you will need to find out what makes your data in %newdata different from what you pass explicitly. I suggest getting an output via Data::Dumper:

    use Data::Dumper; print Dumper \%newdata;