Incidentally, I just implemented pre- and post- handlers on subroutines in pure Perl 5, without any changes to the language. Interesting, huh? sub foo { print "Bar\n"; } append_to_sub {print "After!\n"} &foo; # Perl 5.6.x (&\&) syntax append_to_sub {print "After!\n"}, \&foo; # Perl <5.6 syntax foo(); Bar After! This actually came as a side-track to something else I was doing which was to make some subroutines appear like builtins; (available from all packages) I'll put Sub::Versive on CPAN when I've done *that*. -- The Messiah will come. There will be a resurrection of the dead -- all the things that Jews believed in before they got so damn sophisticated. - Rabbi Meir Kahane
- End-of-scope actions: Toward a hybrid approach. Tony Olekshy
- Re: End-of-scope actions: Toward a hybrid approach. Glenn Linderman
- Re: End-of-scope actions: Toward a hybrid approach. David L. Nicol
- Re: End-of-scope actions: Toward a hybrid approach. Tony Olekshy
- Re: End-of-scope actions: Toward a hybrid approac... James Mastros
- Re: End-of-scope actions: Toward a hybrid approach. Tony Olekshy
- Re: End-of-scope actions: Toward a hybrid approach. Glenn Linderman
- Re: End-of-scope actions: Toward a hybrid approach. John Porter
- Re: End-of-scope actions: Toward a hybrid approac... Glenn Linderman
- Re: End-of-scope actions: Toward a hybrid approach. Simon Cozens
- Re: End-of-scope actions: Toward a hybrid approac... Simon Cozens
- Re: End-of-scope actions: Toward a hybrid approach. John Porter
- Re: End-of-scope actions: Toward a hybrid approach. Simon Cozens
- Re: End-of-scope actions: Toward a hybrid approach. schwern
- Re: End-of-scope actions: Toward a hybrid approach. Simon Cozens