NAME
KA::Tie::Dir::System - Helper functions for reading in and processing of system files in the KA::Tie::Dir framework.
SYNOPSIS
This module is not used separately from KA::Tie::Dir.
DESCRIPTION
KA::Tie::Dir represents file system as a Perl hash. Each hash key corresponds to name of a directory or a file. For example, for a file "/etc/passwd" it will be $data{'etc'}{'passwd'}. Contents of the file "/etc/passwd" becomes a value corresponding to the $data{'etc'}{'passwd'}.
Standard handling procedure for directories is to store a listing of files in the directory as keys. Standard procedure for files is to store a contents of the file in the scalar value.
For certain files with known structure it is possible to define subroutines for special handling. "KA::Tie::Dir::System" defines subroutines for handling system files and, for starters, has 'passwd' handling subroutine. "/etc/passwd" can be represented asa hash with following structure: $data{'etc'}{'passwd'}{$username}{$field}.
USING THE MODULE
This modules is used internally by KA::Tie::Dir.
BUGS
None known.
AUTHOR
Vadim V. Kouevda, initdotd@gmail.com
LICENSE and COPYRIGHT
Copyright (c) 2003-2007, Vadim V. Kouevda, "KAITS, Inc."
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
These terms are your choice of any of (1) the Perl Artistic Licence, or (2) version 2 of the GNU General Public License as published by the Free Software Foundation, or (3) any later version of the GNU General Public License.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this library program; it should be in the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
For licensing inquiries, contact the author at initdotd@gmail.com
WARRANTY
Module comes with ABSOLUTELY NO WARRANTY. For details, see the license.
AVAILABILITY
The latest version can be obtained from CPAN
SEE ALSO
KA::Tie::Dir(3)