Robby Walker > Tie-Restore-0.11 > Tie::Restore

Download:
Tie-Restore-0.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.11   Source  

NAME ^

Tie::Restore - restores ties to an existing object

DESCRIPTION ^

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)

HISTORY ^

BUGS ^

None known. Hard to imagine anything serious in 6 lines of code...

AUTHORS AND COPYRIGHT ^

Written by Robby Walker ( webmaster@pointwriter.com ) for Point Writer ( http://www.pointwriter.com/ ).

You may redistribute/modify/etc. this module under the same terms as Perl itself.

syntax highlighting: