Keep It Simple, Stupid | |
PerlMonks |
Re: Problems Passing an object to a function that was passed to a moduleby haj (Vicar) |
on May 03, 2021 at 08:44 UTC ( [id://11131968]=note: print w/replies, xml ) | Need Help?? |
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)
In Section
Seekers of Perl Wisdom
|
|