"isn't really a closure.."
Exactly, even though it technically is a real closure. The unnamed sub will remember the value of $type as long as the sub exists (in that sense it is a closure). But since $type isn't used anywhere in the unnamed sub, it is of no consequence.
In reply to Re^3: Syntax question about closures and Perl 'sort'
by jethro
in thread Syntax question about closures and Perl 'sort'
by dwm042
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |