rpike has asked for the wisdom of the Perl Monks concerning the following question:
In the subroutine I call I then try using the subroutine that was passed such as :$anonyFunc = sub { my ($aFirst, $aLast, ....) = @_; }; ... somemodule::subname(..... , $anonyFunc.......);
When I run my application and leave out the above line of the call to the anonymous function passed it does everything and finished (except what's in the anonymous function of course). If I include that line the CGI application just returns with a blank page. I can't post the source code but was hoping someone has experienced this before and what is the normal, typical cause of an anoymous function like this not to work? Is there something I can put in the code to help debug it? Any help would be appreciated. Thanks.$passedFunction->($firstParm $secondParm,.....);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Anonymous subroutine
by Anonymous Monk on Mar 14, 2011 at 19:29 UTC |