From: Florian Ragwitz <rafl@debian.org>
Date: Sat, 25 Oct 2008 10:51:46 +0000 (+0000)
Subject: Document *_for_cv.
X-Git-Tag: 0.001001~1^2~1
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6eebbfa7e85713c4bf804184e3d57df86ec82c53;p=p5sagit%2FDevel-BeginLift.git

Document *_for_cv.
---

diff --git a/lib/Devel/BeginLift.pm b/lib/Devel/BeginLift.pm
index b940966..1eee879 100644
--- a/lib/Devel/BeginLift.pm
+++ b/lib/Devel/BeginLift.pm
@@ -111,6 +111,19 @@ Deregisters all subs currently registered for $package and uninstalls begin
 lifting magic is number of teardown_for calls matches number of setup_for
 calls.
 
+=head2 setup_for_cv
+
+  $id = Devel::BeginLift->setup_for_cv(\&code);
+
+Same as C<setup_for>, but only registers begin lifting magic for one code
+reference. Returns an id to be used in C<teardown_for_cv>.
+
+=head2 teardown_for_cv
+
+  Devel::BeginLift->teardown_for_cv($id);
+
+Deregisters begin lifting magic referred to by C<$id>.
+
 =head1 AUTHOR
 
 Matt S Trout - <mst@shadowcatsystems.co.uk>