• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Hash::Flatten Download

Hash::Flatten

October 27, 2009
A software tool that simplifies complex data structures by flattening or unflattening hashes. This allows for easier manipulation and analysis of data.
Version 1.16
License GPL
Platform Linux
Supported Languages English
Homepage www.bbc.co.uk
Developed by BBC
If you are in need of a Perl module that can easily and effectively convert a nested hash structure to a flat hash of delimited key-value pairs and vice versa, then Hash::Flatten is the software for you. It serves as a very useful tool for protocols that only support key-value pairs, such as CGI and DBMs.

This software provides a functional interface with the command $flat_hash = flatten($nested_hash, \%options), which helps to reduce a nested data-structure to key-value form. However, it should be noted that the top-level container must be a hashref. A sample code for this would be:

$nested = {
'x' => 1,
'y' => {
'a' => 2,
'b' => 3
},
'z' => [
'a', 'b', 'c'
]
};
$flat = flatten($nested);
use Data::Dumper;
print Dumper($flat);

This will give the following output:

$VAR1 = {
'y.a' => 2,
'x' => 1,
'y.b' => 3,
'z:0' => 'a',
'z:1' => 'b',
'z:2' => 'c'
};

It is also possible to use the \%options hashref to override the default behavior as needed.

On the other hand, the OO interface of Hash::Flatten provides a more secure option. The command $o = new Hash::Flatten(\%options) enables users to squirrel away settings, while $flat = $o->flatten($nested) flattens the structure and $nested = $o->unflatten($flat) unflattens the structure, while using the options stored in the object.

The SYNOPSIS section provides examples of the functions used in Hash::Flatten. By using the command 'use Hash::Flatten qw(:all);' users can access the exported functions of the software easily.

Overall, Hash::Flatten provides an effective and useful tool for converting nested hash structures to flattened hashes and back again. It has both a functional and OO interface, providing a secure means of using the software.
What's New

Version 1.16: N/A

Free Download 14.5K
343
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    95
  3. DynVPN 1.0
    82
  4. CherryTV 0.1
    80
  5. SlideMap 1.2.2
    75
  6. porm r2
    70
  7. Hills 2.0
    70
  8. crick-info 1.0
    69
  9. fuseftp 0.8
    68
  10. Swiftfox 3.0b5pre-2
    67

Related Downloads

sql++
SQL++ is a versatile command-line SQL tool that can be easily configured ...
Rio600 Kio-Slave
Rio600 Kio-Slave software enables access to RIO 600 with ease.
GNOME Bluetooth control remoto
GNOME Bluetooth remote control is an efficient and effective software solution designed ...
Labyrinth of Worlds
The Labyrinth of Worlds is a software project that rewrites Ultima Underworld ...
slookup
Slookup streamlines parallel DNS lookups for easy accessibility.
Support Incident Tracker
SiT! is a web-based software that helps track technical support calls or ...
glibc-audit
Glibc-audit is a memory access check software for developers that uses a ...
GitPrompt
Get repository details like branch name, commit status, and changes in the ...
Firewall Builder for Cisco IOS ACL
Firewall Builder's latest addition, the Cisco IOS Access Lists, is a complete ...
Rose::HTML::Label
This software provides an object representation of the HTML tag "label". It ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.