Triggers provide a mechanism by which you can implement a wide range of policies for your development environment. Understanding the context and the available techniques allow you to choose the right implementation for your purpose. This paper attempts to give you a head start by cataloging several techniques and purposes in the trigger context as the basis for your own library.
[Baum2005] Baum, Richard, Commit Trigger Example: Configurable Number of Revisions, Proceedings of the 2005 Perforce User’s Conference, Las Vegas.
[Bowles2005] Bowles, Jeff, Scripting with Perforce, Proceedings of the 2005 Perforce User’s Conference, Las Vegas.
[Goldstone2005] Goldstone, John, Using P4G.py From The Command Line, Proceedings of the 2005 Perforce User’s Conference, Las Vegas.
[Perforce2004.2] Perforce Software, Perforce System Administrator’s Guide 2004.2, Perforce Software.