summaryrefslogtreecommitdiff
path: root/lib/Attribute
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-27 09:45:33 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-27 09:45:33 +0000
commit6d9eb87b84e83dcddb478c183e4d030b860db098 (patch)
tree1559991bf564eb80624f5d2be6ecfe6ce365d35c /lib/Attribute
parent7588b095b4fd2549b6878a1928233682c0412566 (diff)
downloadperl-6d9eb87b84e83dcddb478c183e4d030b860db098.tar.gz
Document the limitation of Attribute::Handlers w.r.t. UNITCHECK blocks.
p4raw-id: //depot/perl@29125
Diffstat (limited to 'lib/Attribute')
-rw-r--r--lib/Attribute/Handlers.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Attribute/Handlers.pm b/lib/Attribute/Handlers.pm
index 8ecb2fe479..b1986bd094 100644
--- a/lib/Attribute/Handlers.pm
+++ b/lib/Attribute/Handlers.pm
@@ -2,7 +2,7 @@ package Attribute::Handlers;
use 5.006;
use Carp;
use warnings;
-$VERSION = '0.78_02';
+$VERSION = '0.78_03';
# $DB::single=1;
my %symcache;
@@ -291,7 +291,8 @@ and subroutines subsequently defined in that package, or in packages
derived from that package may be given attributes with the same names as
the attribute handler subroutines, which will then be called in one of
the compilation phases (i.e. in a C<BEGIN>, C<CHECK>, C<INIT>, or C<END>
-block).
+block). (C<UNITCHECK> blocks don't correspond to a global compilation
+phase, so they can't be specified here.)
To create a handler, define it as a subroutine with the same name as
the desired attribute, and declare the subroutine itself with the