summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-31 15:22:29 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-31 15:22:29 +0000
commitd7da42b7c830203bad572620c63d3f513a2b505c (patch)
tree338821fac29bd61c8990ad4e7e36986a5282fedc /pod
parentd184b07b7056a665eb346d7a4841994071485adc (diff)
downloadperl-d7da42b7c830203bad572620c63d3f513a2b505c.tar.gz
Document UNTIE in a very minimalistic way.
p4raw-id: //depot/perl@6947
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod4
-rw-r--r--pod/perltie.pod5
2 files changed, 9 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 99d99016f5..a1381f1d3a 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -5091,6 +5091,7 @@ A class implementing a hash should have the following methods:
FIRSTKEY this
NEXTKEY this, lastkey
DESTROY this
+ UNTIE this
A class implementing an ordinary array should have the following methods:
@@ -5107,6 +5108,7 @@ A class implementing an ordinary array should have the following methods:
SPLICE this, offset, length, LIST
EXTEND this, count
DESTROY this
+ UNTIE this
A class implementing a file handle should have the following methods:
@@ -5119,6 +5121,7 @@ A class implementing a file handle should have the following methods:
PRINTF this, format, LIST
CLOSE this
DESTROY this
+ UNTIE this
A class implementing a scalar should have the following methods:
@@ -5126,6 +5129,7 @@ A class implementing a scalar should have the following methods:
FETCH this,
STORE this, value
DESTROY this
+ UNTIE this
Not all methods indicated above need be implemented. See L<perltie>,
L<Tie::Hash>, L<Tie::Array>, L<Tie::Scalar>, and L<Tie::Handle>.
diff --git a/pod/perltie.pod b/pod/perltie.pod
index b39d7d5336..d08ed5630c 100644
--- a/pod/perltie.pod
+++ b/pod/perltie.pod
@@ -736,6 +736,11 @@ Here's how to use our little example:
print FOO $a, " plus ", $b, " equals ", $a + $b, "\n";
print <FOO>;
+=head2 UNTIE this
+
+You can define for all tie types an UNTIE method that will be called
+at untie().
+
=head2 The C<untie> Gotcha
If you intend making use of the object returned from either tie() or