Associate user-defined magic to variables from Perl

Edit Package perl-Variable-Magic
http://search.cpan.org/dist/Variable-Magic/

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.

Refresh
Refresh
Source Files
Filename Size Changed
Variable-Magic-0.56.tar.gz 0000059254 57.9 KB
cpanspec.yml 0000000468 468 Bytes
perl-Variable-Magic.changes 0000009037 8.83 KB
perl-Variable-Magic.spec 0000002388 2.33 KB
Revision 14 (latest revision is 31)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 297015 from Stephan Kulow's avatar Stephan Kulow (coolo) (revision 14)
- updated to 0.56
   see /usr/share/doc/packages/perl-Variable-Magic/Changes
  0.56    2015-03-11 15:15 UTC
          + Fix : [RT #101410] : Install fails in blead
                  Even though the change that caused this error was reverted from
                  blead, lvalue uses of ERRSV have been removed from this module
                  so that there will be no breakage when this change is possibly
                  reintroduced in the following months.
                  Thanks Dave Rolsky for reporting.
          + Tst : $ENV{$Config{ldlibpthname}} is now preserved on all platforms,
                  which will address failures of t/17-ctl.t with unusual
                  compilers (like icc) that link all their compiled objects to
                  their own libraries.
          + Tst : The global destruction test is now only run on perl 5.13.4 and
                  higher, and only if either Perl::Destruct::Level is installed
                  or PERL_DESTRUCT_LEVEL is set and the perl is a debugging perl.
                  This will solve rare crashes of t/15-self.t on perl 5.13.3 and
                  older.
  
  0.55    2014-10-20 23:45 UTC
          + Fix : [RT #99319] : t/18-opinfo.t: test failure due to change in
                  perl 5 blead
                  The new METHOP op class added in perl 5.21.5 is now supported.
                  Thanks James E Keenan for reporting.
  
  0.54    2014-09-22 17:30 UTC
          + Add : The new constant VMG_COMPAT_CODE_COPY_CLONE evaluates to true
                  if your perl calls 'copy' magic when a magical code prototype
                  is cloned, which is currently the case for perl 5.17.0 and
                  above.
Comments 0
openSUSE Build Service is sponsored by