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
- Re: End-of-scope actions: Garbage collect... Tony Olekshy
- 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 approac... Tony Olekshy
- Re: End-of-scope actions: Toward a hybrid app... Glenn Linderman
- Re: End-of-scope actions: Toward a hybrid... John Porter
- Re: End-of-scope actions: Toward a h... Glenn Linderman
- Re: End-of-scope actions: Toward a hybrid approach. David L. Nicol
- Re: End-of-scope actions: Toward a hybrid approac... Tony Olekshy
- Re: End-of-scope actions: Toward a hybrid app... James Mastros
- 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 approac... John Porter
- Re: End-of-scope actions: Toward a hybrid app... Simon Cozens
- Re: End-of-scope actions: Toward a hybrid... schwern
- Re: End-of-scope actions: Toward a h... Simon Cozens
- End-of-scope actions: Core exceptions. Tony Olekshy
- Re: End-of-scope actions: Unexpected behavior. Tony Olekshy