[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#733265: ITP: libdata-swap-perl -- Perl module to swap type and contents of variables



Package: wnpp
Owner: gregor herrmann <gregoa@debian.org>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org,debian-perl@lists.debian.org

* Package name    : libdata-swap-perl
  Version         : 0.07
  Upstream Author : Matthijs van Duin <xmath@cpan.org>
* URL             : https://metacpan.org/release/Data-Swap
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : Perl module to swap type and contents of variables

The Data::Swap module allows you to swap the contents of two referenced
variables, even if they have different types.

The main application is to change the base type of an object after it has
been created, for example for dynamic loading of data structures:

 swap $self, bless $replacement, $newclass;

This module additionally contain the function "deref" which acts like a
generic list-dereferencing operator.


Reply to: