projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e07570c
)
Add remove_callbacks()
author
Mike Taylor
<mike@indexdata.com>
Wed, 27 Sep 2006 12:48:20 +0000
(12:48 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 27 Sep 2006 12:48:20 +0000
(12:48 +0000)
lib/ZOOM/Pod.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/Pod.pm
b/lib/ZOOM/Pod.pm
index
280f099
..
3e2f9ce
100644
(file)
--- a/
lib/ZOOM/Pod.pm
+++ b/
lib/ZOOM/Pod.pm
@@
-1,4
+1,4
@@
-# $Id: Pod.pm,v 1.20 2006-09-27 12:40:44 mike Exp $
+# $Id: Pod.pm,v 1.21 2006-09-27 12:48:20 mike Exp $
package ZOOM::Pod;
package ZOOM::Pod;
@@
-210,6
+210,20
@@
sub callback {
return $old;
}
return $old;
}
+=head2 remove_callbacks()
+
+ $pod->remove_callbacks();
+
+Removes all registed callbacks from the pod. This is useful when the
+pod has completed one operation and is about to start the next.
+
+=cut
+
+sub remove_callbacks {
+ my $this = shift();
+ $this->{callback} = {};
+}
+
=head2 search_pqf()
$pod->search_pqf("@attr 1=1003 wedel");
=head2 search_pqf()
$pod->search_pqf("@attr 1=1003 wedel");