Revision history for Variable-Magic
+0.36 2009-07-05 16:30 UTC
+ + Chg : getdata() now returns an empty list when no magic is present.
+ It used to return undef but did not croak as stated in the doc.
+ Thanks Matt S. Trout for pointing this out.
+ + Fix : Building and tests with ActiveState Perl 5.8 build >= 822.
+
0.35 2009-05-15 20:50 UTC
This is a maintenance release. Users of 0.34 can skip this update.
+ Chg : uvar magic used to be enabled for 5.9.5. It now requires 5.10 or
--- #YAML:1.0
name: Variable-Magic
-version: 0.35
+version: 0.36
abstract: Associate user-defined magic to variables from Perl.
author:
- Vincent Pit <perl@profvince.com>
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.50
+generated_by: ExtUtils::MakeMaker version 6.52
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
Variable::Magic - Associate user-defined magic to variables from Perl.
VERSION
- Version 0.35
+ Version 0.36
SYNOPSIS
use Variable::Magic qw/wizard cast VMG_OP_INFO_NAME/;
This accessor fetches the private data associated with the magic $wiz
(or the signature $sig) in the variable. It croaks when $wiz or $sig do
- not represent a current valid magic object attached to the variable, and
- returns "undef" when the wizard has no data constructor or when the data
- is actually "undef".
+ not represent a valid magic object, and returns an empty list if no such
+ magic is attached to the variable or when the wizard has no data
+ constructor.
# Get the attached data, or undef if the wizard does not attach any.
my $data = getdata $x, $wiz;
=head1 VERSION
-Version 0.35
+Version 0.36
=cut
our $VERSION;
BEGIN {
- $VERSION = '0.35';
+ $VERSION = '0.36';
}
=head1 SYNOPSIS