All the Perl that's Practical to Extract and Report

Navigation

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.

Please Log In to Continue

One of Alzabo's users suggested hooks exactly like you describe a while back, including pre and post select hooks. Maybe we can make a better effort to talk about neat stuff we're doing in our libraries and try to share it. Alzabo has quite a number of funky tricks that Class::DBI could probably borrow, and likely vice versa.

In my mind, this is one of the nifty things about SPOPS -- there are pre/post fetch/save/remove handlers (called 'rules') for which you can create as many actions as you wish. There are some tricky areas -- rules are unordered (since they don't know about each other), so what happens if one rule modifies the data of an object before another rule gets to it? Fun...

Somehow, strangely, this was already fixed...maybe I did it
subconsciously, maybe there are helpful little gnomes running around
in the repository and fixing bugs while we sleep, I don't know..
-- Jarkko Hietaniemi

Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.