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.
In reply to Re^2: Bizarre Results when Creating a Closure
by kyle
in thread Bizarre Results when Creating a Closure
by liverpole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |