add_user(ALIAS,@USERS)
This method will add the list of users to an existing alias. Users that are already members of the alias
are silently ignored. The special alias name * will add the users to every alias. Returns 1 on success
or 0 on failure.
alias(ALIAS[,@USERS])
This method can add, modify, or return information about an alias. Supplied with a single alias
parameter, it will return a list consisting of the members of that alias, or undef if no such alias
exists. If you supply more parameters, the named alias will be created or modified if it already exists.
The member list is also returned to you in this case.
aliases()
This method returns a list of all existing aliases. The list will be sorted in alphabetical order. In
scalar context, this method returns the total number of aliases.
comment(ALIAS,COMMENT)
This method inserts a comment line before the specified alias. You must supply your own comment marker
(#) but a newline will be automatically appended to the comment unless it already has one. Returns 1 on
success and 0 on failure.
commit([BACKUPEXT])
See the Unix::ConfigFile documentation for a description of this method.
delempty()
This method will delete all existing aliases that have no members. It returns a count of how many
aliases were deleted.
delete(ALIAS)
This method will delete the named alias. It has no effect if the supplied alias does not exist.
new(FILENAME[,OPTIONS])
See the Unix::ConfigFile documentation for a description of this method.
remove_user(ALIAS,@USERS)
This method will remove the list of users from an existing alias. Users that are not members of the
alias are silently ignored. The special alias name * will remove the users from every alias. Returns 1
on success or 0 on failure.
rename_user(OLDNAME,NEWNAME)
This method will change one username to another in every alias. Returns the number of aliases affected.
uncomment(COMMENT)
Remove the comment from the file that matches the supplied text. The match must be exact. Returns 1 on
success and 0 on failure.