>>>>> "Chad" == Chad Perrin <[EMAIL PROTECTED]> writes:
Chad> The $meat = sub { . . . } bit creates an anonymous subroutine, and Chad> assigns a reference to it to the $meat variable. This allows you to Chad> effectively pass around code within a variable, to be dereferenced when Chad> you need it. That sort of behavior, particularly within closures and Chad> the like, starts to get into what some call "metaprogramming", where Chad> your programs can sorta "write themselves" on the fly. Yeah, it's sorta like self-modifying code. If I had been particularly evil, I could have used a B:: module to *actually* change the bytecodes. Ewww. Evil. Chad> That should give you sort of a beginning on understanding what was just Chad> done by Mr. Schwartz. For more, check out the alpaca book (an excellent Chad> read, by the way). Thanks! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>