Man Page: netsds::util::struct
Operating Environment: debian
Section: 3pm
NetSDS::Util::Struct(3pm) User Contributed Perl Documentation NetSDS::Util::Struct(3pm)NAMENetSDS::Util::Struct - data structure convertorsSYNOPSISuse NetSDS::Util::Struct; ... my $str = dump_to_row($some_structure);DESCRIPTIONNetSDS::Util::Struct module contains different utilities for data structures processing.EXPORTED METHODSdump_to_string(...) Returns cleaned dump to scalar. dump_to_row(...) Returns cleaned dump to scalar. to_array($data) arrays_to_hash($keys_ref, $values_ref) - translate arrays to hash Parameters: references to keys array and values array Return: hash If @$keys_ref is longer than @$values_ref - rest of keys filled with "undef" values. If @$keys_ref is shorter than @$values_ref - rest of values are discarded. If any of parameters isn't array reference then "undef" will return. Example: my %h = array2hash(['fruit','animal'], ['apple','horse']); Result should be a hash: ( fruit => 'apple', animal => 'horse' ) merge_hash($target, $source) - merge two hashes Parameters: references to target and source hashes. This method adds source hash to target one and return value as a result.EXAMPLESNoneBUGSUnknown yetTODONoneSEE ALSONoneAUTHORSValentyn Solomko <pere@pere.org.ua> perl v5.12.4 2011-08-27 NetSDS::Util::Struct(3pm)
| Related Man Pages |
|---|
| netsds(3pm) - debian |
| netsds::app::smtpd(3pm) - debian |
| netsds::const(3pm) - debian |
| netsds::util::string(3pm) - debian |
| netsds::util::struct(3pm) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| display and output...question |
| Scripting problem: Output |
| Script to check a file and replace some of the contents |
| Understanding perl code |
| Struct as return type |