Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: regarding 1.02 (was Re: IO::Lambda: call for participation)by tilly (Archbishop) |
on Jan 14, 2009 at 11:57 UTC ( [id://736201]=note: print w/replies, xml ) | Need Help?? |
It needs to be passed in the context because the dispatch engine needs to know about $socket so it knows when to dispatch to the closure. $socket also needs to be available in the closure, so the easiest way to do that is to make it part of the closure. However if you want the context is also available in @_. It just takes more work to get it from there.
In Section
Meditations
|
|