#!/usr/local/bin/perl
use blib;
use strict;
use warnings;
use AFS::PTS;
die "Usage: $0 name convertids convertflags\n" if $#ARGV != 2;
my $name = shift;
my $convert = shift;
my $flags = shift;
my $pts = AFS::PTS->new;
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";
my $entry = $pts->listentry($name, $convert, $flags);
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});
}
}