[p4perl] Creating Users
Tony Smith
tony at perforce.com
Wed Mar 8 03:20:38 PST 2006
Hi Scott,
On Tuesday 07 March 2006 19:45, Scott Lavender wrote:
> Thanks for the help David. It works great. But, I have a follow up
> question. After modifying the user hash, what would be the corresponding
> way to save/create the user? I though it would be:
>
> $p4->SaveUser( $user );
>
> But, this does not seem to work.
If you're attempting to modify another user's details, you will need to invoke
the power of the '-f' flag. This should do the trick:
$p4->SaveUser( "-f", $user );
Note also that when things don't 'seem to work', it's worth printing the
output returned from the command and the contents of the $p4->Errors() and
$p4->Warnings() arrays. They'll yield valuable clues.
You can also use $p4->DebugLevel( 3 ) (in the latest builds of P4Perl) to see
way more information than you really want.
Tony
More information about the p4perl
mailing list