![]() |
|
more useful options | |
PerlMonks |
Re: Why callbacks?by exussum0 (Vicar) |
on Mar 30, 2007 at 17:51 UTC ( #607553=note: print w/replies, xml ) | Need Help?? |
Callbacks are great for injecting behaviour into something - ruby calls them mixins.
Instead of having variables referenced within the function, outward, to something lexically scoped or globally is really weird. I would expect the callback retaining the data and you querying it for the result. Hrm..
In Section
Seekers of Perl Wisdom
|
|