From: Jarkko Hietaniemi Date: Sun, 9 Jun 2002 16:13:44 +0000 (+0000) Subject: Clarify that the :unique makes the target readonly X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=96fa8c42c795adad8ad14fbfa75a407406a5430e;p=p5sagit%2Fp5-mst-13.2.git Clarify that the :unique makes the target readonly when the first interpreter cloning takes place. p4raw-id: //depot/perl@17138 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index c1efce7..b173cdd 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -3102,15 +3102,16 @@ relied upon. The only currently recognized attribute is C which indicates that a single copy of the global is to be used by all interpreters should the program happen to be running in a multi-interpreter -environment. (The default behaviour would be for each interpreter to -have its own copy of the global.) In such an environment, this -attribute also has the effect of making the global readonly. -Examples: +environment. (The default behaviour would be for each interpreter +to have its own copy of the global.) Examples: our @EXPORT : unique = qw(foo); our %EXPORT_TAGS : unique = (bar => [qw(aa bb cc)]); our $VERSION : unique = "1.00"; +Note that this attribute also has the effect of making the global +readonly when the first new interpreter is cloned. + Multi-interpreter environments can come to being either through the fork() emulation on Windows platforms, or by embedding perl in a multi-threaded application. The C attribute does nothing in