File: new.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 (22 lines) | stat: -rw-r--r-- 352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use warnings;
use strict;
use feature 'say';

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

say "Before: " . IPC::Shareable::ipcs;

my $h = IPC::Shareable->new(
    key => 'blah',
    create => 1,
    destroy => 1
);

$h->{one}{two} = 'hello, world!';
$h->{one}{three}{four} = 1;

print Dumper $h;

IPC::Shareable::_end;
say "After: " . IPC::Shareable::ipcs;