>>>>> "sw" == shawn wilson <ag4ve...@gmail.com> writes:
sw> thank you all. i have a much better grasp on what this means sw> now. at least i know why i had trouble with it - i didn't (don't) sw> understand closures. and, i am not used to event driven sw> programming. the example comes from psgi which (generally) gets an sw> event and gives you data. i've also been looking into anyevent sw> (following the rabbit hole) to try to figure out event programming sw> better. however, i see now that i need to take a few steps back sw> and understand closures first. please keep the various things clear. the original code you posted (without the surrounding sub) was not OO, nor a closure, nor an event handler. your original question was about shift->() and only that. don't keep wandering around all these other things until you fully get what that was. i still am not sure if you got it as each of your rewrites was off target. the outer context and closure stuff came in but i never saw you grasp the code dereferenced concept or syntax. you kept saying OO when it wasn't OO. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/