AFS

 view release on metacpan or  search on metacpan

examples/v2/bos/adduser  view on Meta::CPAN

#!/usr/local/bin/perl

use v5.10.0;
use blib;
use strict;
use warnings;

use AFS::BOS;

my (@users, $user, $server, $cellname, $bos);

die "Usage: $0 user server [cell]\n" if $#ARGV < 1;

$user     = shift;
$server   = shift;
$cellname = shift // '';

if ($cellname) { $bos = AFS::BOS->new($server, 0, 0, $cellname); }
else           { $bos = AFS::BOS->new($server); }
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n" and die;

@users = split (/ /, $user);
my $ok = $bos->adduser(\@users);
print "Error Code: $AFS::CODE\n" if ($AFS::CODE);

$bos->DESTROY;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.483 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )