in reply to Re: Bizarre Results when Creating a Closure
in thread Bizarre Results when Creating a Closure
That produces a reference to a list, not a code ref like the original. Instead of calling $psub->(), you have to write $psub->[0]->($psub->[1]) instead, and that works, but it sure is ugly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bizarre Results when Creating a Closure
by thundergnat (Deacon) on May 04, 2007 at 15:35 UTC |