File: one_deep_hash.pl

package info (click to toggle)
libipc-shareable-perl 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 440 kB
  • sloc: perl: 1,225; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 281 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use warnings;
use strict;

use Data::Dumper;
use IPC::Shareable;

tie my %h, 'IPC::Shareable', {key => 'hash', create => 1, destroy => 1};

$h{a} = {z => 26, y => {1 => 2}};
$h{b} = 12;
$h{c} = {m => {3 => 3}};
$h{c}->{n} = 3;
<>;

print Dumper \%h;

IPC::Shareable->clean_up_all;