testing/one_deep_hash.pl
raw| 1 | use warnings; |
| 2 | use strict; |
| 3 | |
| 4 | use Data::Dumper; |
| 5 | use IPC::Shareable; |
| 6 | |
| 7 | tie my %h, 'IPC::Shareable', {key => 'hash', create => 1, destroy => 1}; |
| 8 | |
| 9 | $h{a} = {z => 26, y => {1 => 2}}; |
| 10 | $h{b} = 12; |
| 11 | $h{c} = {m => {3 => 3}}; |
| 12 | $h{c}->{n} = 3; |
| 13 | <>; |
| 14 | |
| 15 | print Dumper \%h; |
| 16 | |
| 17 | IPC::Shareable->clean_up_all; |