SYNOPSIS

        use NetSDS::Util::Struct;

        ...

        my $str = dump_to_row($some_structure);

DESCRIPTION

NetSDS::Util::Struct module contains different utilities for data structures processing.

EXPORTED METHODS

dump_to_string(...)

Returns cleaned dump to scalar.

dump_to_row(...)

Returns cleaned dump to scalar.

to_array($data)

Parameters: references to keys array and values array Return: hash If @$keys_ref is longer than @$values_ref - rest of keys filled with \*(C`undef\*(C' values. If @$keys_ref is shorter than @$values_ref - rest of values are discarded. If any of parameters isn't array reference then \*(C`undef\*(C' will return. Example: my %h = array2hash(['fruit','animal'], ['apple','horse']); Result should be a hash: ( fruit => 'apple', animal => 'horse' ) Parameters: references to target and source hashes. This method adds source hash to target one and return value as a result.

EXAMPLES

None

BUGS

Unknown yet

TODO

None

RELATED TO NetSDS::Util::Struct…

None

AUTHORS

Valentyn Solomko <[email protected]>