From: Vincent Pit Date: Sat, 8 Aug 2009 07:38:09 +0000 (+0200) Subject: Clarify when get/set magic triggers for container types X-Git-Tag: v0.37~4 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=commitdiff_plain;h=a5f1caf2861bd8eac71acfec7ebaae65a08e076c Clarify when get/set magic triggers for container types --- diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index 0a47ae7..1ac6898 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -105,13 +105,15 @@ The operations that can be overloaded are : C -This magic is invoked when the variable is evaluated (does not include array/hash subscripts and slices). +This magic is invoked when the variable is evaluated. +It is never called for arrays and hashes. =item * C -This one is triggered each time the value of the variable changes (includes array/hash subscripts and slices). +This one is triggered each time the value of the variable changes. +It is called for array subscripts and slices, but never for hashes. =item *