The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/local/bin/perl

use blib;
use strict;
use warnings;

use AFS::PTS;

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

my $pos = shift;

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

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