joec_ has asked for the wisdom of the Perl Monks concerning the following question:
I think im missing something...
This code searches for people (ldap i think). It works fine if the searchString is something unique to a person i.e a login id but if i use a common surname i.e. shaw, i get this error:use SOAP::Lite; ##...soap setup done here....## my $result = $soap->search(SOAP::Data->name('searchString',$search)); foreach my $r (%$result){ print $r->result->{Person}->{commonname}; }
Pseudo-hashes are deprecated at ./searchPeople.pl line 23. Argument "\x{53}\x{68}..." isn't numeric in hash element at ./searchPe +ople.pl line 23. Bad index while coercing array into hash at ./searchPeople.pl line 23.
Its obviously a syntactic thing, to do with hashes of hashes or some such, but i just cant work it out.
The argument isnt numeric bit -> \x{53}\x{68} converts to Sh from Shaw i guess.
Thanks
Joe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite and hash of hashes
by jethro (Monsignor) on Feb 12, 2009 at 14:39 UTC | |
by joec_ (Scribe) on Feb 12, 2009 at 14:45 UTC | |
by jethro (Monsignor) on Feb 12, 2009 at 15:16 UTC | |
by joec_ (Scribe) on Feb 12, 2009 at 15:55 UTC | |
by jethro (Monsignor) on Feb 12, 2009 at 16:09 UTC | |
|