Provided by: libsharyanto-utils-perl_0.53-1_all 

NAME
SHARYANTO::Data::Util - Data utilities
VERSION
version 0.53
SYNOPSIS
DESCRIPTION
FUNCTIONS
None are exported by default, but they are exportable.
None are exported by default, but they are exportable.
clone_circular_refs(@args) -> any
For example, this data:
$x = [1];
$data = [$x, 2, $x];
contains circular references by referring to $x twice. After "clone_circular_refs", data will become:
$data = [$x, 2, [1]];
that is, the subsequent circular references will be deep-copied. This makes it safe to transport to JSON,
for example.
Sometimes it doesn't work, for example:
$data = [1];
push @$data, $data;
Cloning will still create circular references.
This function modifies the data structure in-place, and return true for success and false upon failure.
Arguments ('*' denotes required arguments):
• data* => any
Return value:
SEE ALSO
To check for circular references, try "has_circular_ref" from Data::Structure::Util. There is also
Devel::Cycle albeit far slower.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5
programming language system itself.
perl v5.18.1 2013-10-23 SHARYANTO::Data::Util(3pm)