Inserting a $value if 0; into sub initialize to make it close over $value and correcting the 'ex'/'example' inconsistency makes it work (both on 5.8.x and 5.10).
In reply to Re^2: File-scoped lexicals and eval scope?
by ysth
in thread File-scoped lexicals and eval scope?
by Cambo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |