Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Problems Passing an object to a function that was passed to a module

by haj (Vicar)
on May 03, 2021 at 08:44 UTC ( [id://11131968]=note: print w/replies, xml ) Need Help??


in reply to Problems Passing an object to a function that was passed to a module

Your construct is creating an anonymous sub {parseGroupDescription} which gets into the way - it doesn't pass the value it receives to parseGroupDescription.

A quick guess: Just replace sub {parseGroupDescription} by a direct reference to your named sub:

my $data=$zbdbObj->fetchData($ldapConn,$serviceFilter,$groupFilter,\&parseGroupDescription)
  • Comment on Re: Problems Passing an object to a function that was passed to a module
  • Download Code

Replies are listed 'Best First'.
Re^2: Problems Passing an object to a function that was passed to a module
by Oliver.Doerr (Initiate) on May 03, 2021 at 09:41 UTC
    This hint solved the problem. Thanks a lot Oliver

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131968]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-26 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found