All pastes #168662 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-09-13 05:27 UTC
rendered paste body
use IPC::ShareLite;
use Storable qw( freeze thaw );

$share = new IPC::ShareLite( -key       => 412469,
                             -create    => 'no',
                             -destroy   => 'no' ) or die $!;

#$hash = { test1 => "hello" , test2 => "world"};

#$share->store(freeze($hash));

$hash = thaw($share->fetch());
foreach(keys %$hash)
{
        print $_."->".$hash->{$_}."\n";
}