GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Sys::User::UIDhelper(3) User Contributed Perl Documentation Sys::User::UIDhelper(3)

Sys::User::UIDhelper - Helps for locating free UIDs.

Version 0.0.1

This finds a

    use Sys::User::UIDhelper;

    #implements it with the default values
    my $foo = Sys::User::UIDhelper->new();

    #sets the min to 0 and the max to 4000
    my $foo = Sys::User::UIDhelper->new({max=>'0', min=>'4000'});

    #finds the first free one
    my $first = $foo->firstfree();
    if(defined($first)){
        print $first."\n";
    }else{
        print "not found\n";
    }

    #finds the first last one
    my $last = $foo->lastfree();
    if(defined($last)){
        print $last."\n";
    }else{
        print "not found\n";
    }

This initiates the module. It accepts one arguement, a hash. Please See below for accepted values.

min

The minimum UID.

max

The maximum UID.

This finds the first free UID. If it returns undef, no free ones were found.

This finds the first last UID. If it returns undef, no free ones were found.

Implement various backends for system, LDAP, and passwd.

Zane C. Bowers, "<vvelox at vvelox.net>"

Please report any bugs or feature requests to "bug-sys-user-uidhelper at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sys-User-UIDhelper>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc Sys::User::UIDhelper

You can also look for information at:

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Sys-User-UIDhelper>

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/Sys-User-UIDhelper>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/Sys-User-UIDhelper>

  • Search CPAN

    <http://search.cpan.org/dist/Sys-User-UIDhelper>

Copyright 2008 Zane C. Bowers, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2009-10-03 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.