Tie::FileSystem::System - Helper functions for reading in and processing


Tie-FileSystem documentation  | view source Contained in the Tie-FileSystem distribution.

Index


NAME

Top

Tie::FileSystem::System - Helper functions for reading in and processing of system files in the Tie::FileSystem framework.

SYNOPSIS

Top

This module is not used separately from Tie::FileSystem.

DESCRIPTION

Top

Tie::FileSystem 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. Tie::FileSystem::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

Top

This modules is used internally by Tie::FileSystem.

BUGS

Top

None known.

AUTHOR

Top

Vadim V. Kouevda, initdotd@gmail.com

LICENSE and COPYRIGHT

Top

WARRANTY

Top

Module comes with ABSOLUTELY NO WARRANTY. For details, see the license.

AVAILABILITY

Top

The latest version can be obtained from CPAN

SEE ALSO

Top

Tie::FileSystem(3)


Tie-FileSystem documentation  | view source Contained in the Tie-FileSystem distribution.