aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Tie-Restore/pkg-descr
blob: 2b32e670ddc3429af0d19146d54eb5fe44b67da4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
Provides the opposite of the 'tied' function.  Say you have %hash that
is tied to $object.  Then, it is relatively simple to get $object from
%hash simply by saying

 $object = tied %hash;

But, how does one go the other way?  Simple, with Tie::Restore

 tie %hash, 'Tie::Restore', $object;

Works for any kind of tie. (scalar, array, hash, filehandle)

WWW: https://metacpan.org/release/Tie-Restore