IPC::SysV和IPC::Msg

IPC::SysV和IPC::Msg

好像很难看懂啊,特别是这两句红色处:
$key = IPC::SysV::ftok("MSG_PATH",1);
$msg =new IPC::Msg($key,0666|IPC_CREAT) or die "new fail!";

[Copy to clipboard] [ - ]
CODE:
#!/usr/bin/perl
use strict;
use warnings;
use IPC::SysV qw(IPC_PRIVATE S_IRWXU S_IRWXG S_IRWXO IPC_CREAT IPC_NOWAIT);
use IPC::Msg;
my ($key,$msg,$msgtype,$buf);
$key = IPC::SysV::ftok("MSG_PATH",1);
$msg =new IPC::Msg($key,0666|IPC_CREAT) or die "new fail!";
$msgtype = 1;
$msg->snd($msgtype,"abc123456",IPC_NOWAIT) or die "snd fail!";
$msg->rcv($buf,1024) or die "rcv fail!";
print $buf,"\n";

我在cpan上搜了一下那两个模块,介绍太短了,希望大家帮忙解答一下那两句,谢谢!
应该可以参照IPC::Shareable