summaryrefslogtreecommitdiff
path: root/ext/attributes
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-04-12 17:06:31 +0100
committerNicholas Clark <nick@ccl4.org>2009-04-12 17:06:31 +0100
commit6db6f3536f510077f30c88fc966d713b340ffa3b (patch)
tree9333845990c965eb2f43b71c3b7ceebe8184ebb0 /ext/attributes
parentf1a3ce43fb80c48e414d9b35caf0ac62cb80ff4e (diff)
downloadperl-6db6f3536f510077f30c88fc966d713b340ffa3b.tar.gz
s/locked/lvalue/ in the examples, and remove mention of the deprecated :unique.
(Which was actually a dangling cross reference, as what it pointed to in perlfunc had already been deleted.)
Diffstat (limited to 'ext/attributes')
-rw-r--r--ext/attributes/attributes.pm16
1 files changed, 7 insertions, 9 deletions
diff --git a/ext/attributes/attributes.pm b/ext/attributes/attributes.pm
index e94282c79b..31d103779e 100644
--- a/ext/attributes/attributes.pm
+++ b/ext/attributes/attributes.pm
@@ -225,8 +225,6 @@ of the now-removed "Perl 5.005 threads".
=back
-For global variables there is C<unique> attribute: see L<perlfunc/our>.
-
=head2 Available Subroutines
The following subroutines are available for general use once this module
@@ -333,7 +331,7 @@ Some examples of syntactically valid attribute lists:
switch(10,foo(7,3)) : expensive
Ugly('\(") :Bad
_5x5
- locked method
+ lvalue method
Some examples of syntactically invalid attribute lists (with annotation):
@@ -397,22 +395,22 @@ Effect:
Code:
package X;
- sub foo : locked ;
+ sub foo : lvalue ;
Effect:
- use attributes X => \&foo, "locked";
+ use attributes X => \&foo, "lvalue";
=item 4.
Code:
package X;
- sub Y::x : locked { 1 }
+ sub Y::x : lvalue { 1 }
Effect:
- use attributes Y => \&Y::x, "locked";
+ use attributes Y => \&Y::x, "lvalue";
=item 5.
@@ -425,11 +423,11 @@ Code:
BEGIN { *bar = \&X::foo; }
package Z;
- sub Y::bar : locked ;
+ sub Y::bar : lvalue ;
Effect:
- use attributes X => \&X::foo, "locked";
+ use attributes X => \&X::foo, "lvalue";
=back