in reply to Re: Re: Re^3: Perl to Ruby translator?
in thread Perl to Ruby translator?

It's a closure because it contains a reference to a lexical variable ($q) from a parent scope. It could cause problems if later you reassigned $q and thought it would change inside the sub, or thought it go away after the scope of $q ended.


Perl6 Grammar Student