summaryrefslogtreecommitdiff
path: root/devel/p5-Data-Swap/pkg-descr
blob: 3e8197d3d9805c25057273a82be8006f24ad6db8 (plain)
1
2
3
4
5
6
7
8
9
10
Paraphrased from the Data:Swap's documentation  ...

Data::Swap (XS) module allows 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;

WWW: https://metacpan.org/release/Data-Swap