You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2004/08/13 04:03:24 UTC
cvs commit: modperl-docs/src/docs/2.0/api/APR Bucket.pod
stas 2004/08/12 19:03:24
Modified: src/docs/2.0/api/APR Bucket.pod
Log:
B<Important:> in order to avoid unnecessary data copying the variable
is stored in the bucket object. That means that if you modify C<$data>
after passing it to C<new()> you will modify the data in the bucket as
well. To avoid that pass to C<new()> a copy which you won't modify.
Revision Changes Path
1.10 +6 -1 modperl-docs/src/docs/2.0/api/APR/Bucket.pod
Index: Bucket.pod
===================================================================
RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/APR/Bucket.pod,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -u -r1.9 -r1.10
--- Bucket.pod 12 Jul 2004 23:13:22 -0000 1.9
+++ Bucket.pod 13 Aug 2004 02:03:24 -0000 1.10
@@ -257,7 +257,12 @@
=item arg1: C<$data> ( string )
-The data to initialize with
+The data to initialize with.
+
+B<Important:> in order to avoid unnecessary data copying the variable
+is stored in the bucket object. That means that if you modify C<$data>
+after passing it to C<new()> you will modify the data in the bucket as
+well. To avoid that pass to C<new()> a copy which you won't modify.
=item opt arg2: C<$offset> ( number )
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org