in reply to Re: understanding closures
in thread understanding closures

The named sub there is a closure, but only in a trivial sense

Thanks demerphq, I understand this now. I can see that the power of closure comes when you're using them dynamically, hence why all the examples show anonymous sub references. However, using these simple examples has really helped my understanding, so ++ all round.

Rob

---
my name's not Keith, and I'm not reasonable.