Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Creating a Multi Level Hash from CSV

by Fletch (Chancellor)
on May 13, 2021 at 01:47 UTC ( #11132527=note: print w/replies, xml ) Need Help??

in reply to Re: Creating a Multi Level Hash from CSV
in thread Creating a Multi Level Hash from CSV

OP definitely needs to elaborate for a better answer, but I've seen this kind of CSV-ish structure used once or twice to define something like a tree structure (not that it's a great idea, more there was a CSV hammer and hence . . .).

Edit: Just to be slightly more concrete, they had something like this YAML

--- Top A: - A1 - A2: - A2.1 - A2.2 Top B: - B1: - B1.1 - B1.2

And they represented as something like:

Top A, Top A,A1, Top A,A2, Top A,A2,A2.1 Top A,A2,A2.2 Top B, Top B,B1 Top B,B1,B1.1 Top B,B1,B1.2

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132527]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (1)
As of 2021-10-22 00:24 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (85 votes). Check out past polls.