#!/usr/local/bin/perl

use blib;
use strict;
use warnings;

use AFS::PTS;

die "Usage: $0 id\n" if $#ARGV != 0;

my $id = shift;

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

my $entry = $pts->PR_ListEntry($id);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else {
    print "LIST:  AFS::CODE = $AFS::CODE\n";
    foreach my $key ( sort keys %$entry) {
        printf("%20s =>  %s\n", $key, $$entry{$key});
    }
}
