in reply to Re^2: Storing/parsing perl data structure in/from a file
in thread Storing/parsing perl data structure in/from a file
The only way I see is to assign the data to a tied hash, which automatically reacts on collisions...of course all nested hashes need to be tied too.
something like
Not sure of this works, and I don't wanna trie to implement it for such a "unique" requirement...my $datastring =slurp $file; tie %h, "CollisionHash"; eval "\%h = $datastring"
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Storing/parsing perl data structure in/from a file
by LanX (Saint) on Jun 13, 2013 at 00:41 UTC |