Associate user-defined magic to variables from Perl
Magic is Perl's way of enhancing variables. This mechanism lets the user
add extra data to any variable and hook syntactical operations (such as
access, assignment or destruction) that can be applied to it. With this
module, you can add your own magic to any variable without having to write
a single line of XS.
You'll realize that these magic variables look a lot like tied variables.
It's not surprising, as tied variables are implemented as a special kind of
magic, just like any 'irregular' Perl variable : scalars like '$!', '$(' or
'$^W', the '%ENV' and '%SIG' hashes, the '@ISA' array, 'vec()' and
'substr()' lvalues, the threads::shared manpage variables... They all share
the same underlying C API, and this module gives you direct access to it.
- Sources inherited from project devel:languages:perl
- Devel package for openSUSE:Factory
-
1
derived packages
- Links to openSUSE:Factory / perl-Variable-Magic
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/perl-Variable-Magic && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
Variable-Magic-0.52.tar.gz | 0000058146 56.8 KB | |
_link | 0000000154 154 Bytes | |
perl-Variable-Magic.changes | 0000006252 6.11 KB | |
perl-Variable-Magic.spec | 0000002771 2.71 KB |
Revision 10 (latest revision is 31)
- updated to 0.52 + Add : The new constant VMG_COMPAT_SCALAR_NOLEN evaluates to true when your perl does not call 'len' magic for scalars, which is the case for perl 5.17.4 and above. This fixes RT #80388. + Tst : t/35-stash.t has been taught about perl 5.17.4. + Tst : Author tests overhaul. + Fix : It is now safe to call dispell() from inside 'free', 'copy' and 'uvar' callbacks to dispell the magic currently in use. Thanks Clinton Gormley for reporting. + Fix : Exceptions thrown from inside a 'free' callback are now always consistently propagated outside of the callback. They used to be lost when the 'free' callback was invoked at the end of an eval block or string. + Fix : The 'reset RMG flag' workaroundn used to allow wizards with both 'uvar' and 'clear' magics to be cast onto a hash, has been made thread-safe. + Fix : Less memory is leaked when a wizard is freed during global destruction, or when an exception is thrown from a 'free' callback. + Fix : [RT #77991] : t/17-ctl.t fails on perl 5.14 and 5.16. This was actually an issue with ActivePerl, and this test has learned to cope with it. Thanks Gisle Aas for reporting. + Tst : t/35-stash.t has been taught about perl 5.17.1. + Doc : Many clarifications. This is a maintenance release. The code contains no functional change. Satisfied users of version 0.48 can skip this update. + Fix : [RT #77644] : t/17_ctl.t fails in test 44 since 5.17.0. This test has been taught about perl 5.17.0.
Comments 0