#!/usr/local/bin/perl

use blib;
use strict;
use warnings;

use AFS::PTS;

die "Usage: $0 name id ownerid\n" if ($#ARGV != 2);

my $name= shift;
my $id = shift;
my $ownerid = shift;

my $pts = AFS::PTS->new;
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";

my $theid = $pts->PR_INewEntry($name, $id, $ownerid);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else            { print "id = $theid\n"; }
