From: Peter Rabbitson Date: Sat, 25 Sep 2010 18:18:36 +0000 (+0200) Subject: Clarify minimum perl 5.10.0 requirement for hash magic X-Git-Tag: v0.45~11 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=commitdiff_plain;h=4fb41bab55f1d514f1421f8fc4aae9da00f559ec Clarify minimum perl 5.10.0 requirement for hash magic --- diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index c10a805..4753904 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -159,7 +159,7 @@ It is available on your perl iff C is true. =back -The following actions only apply to hashes and are available iff C is true. +The following actions only apply to hashes and are available iff L is true. They are referred to as C magics. =over 4 @@ -381,6 +381,8 @@ Evaluates to true iff the 'local' magic is available. =head2 C When this constant is true, you can use the C callbacks on hashes. +Initial VMG_UVAR capability was introduced in perl 5.9.5, with a fully functional implementation +shipped with perl 5.10.0. =head2 C @@ -600,6 +602,8 @@ The only way to address this would be to return a reference. If you define a wizard with a C callback and cast it on itself, this destructor won't be called because the wizard will be destroyed first. +In order to define magic on hash members, you need at least L 5.10.0 (see L) + =head1 DEPENDENCIES L 5.8.