File::RegexMatch::File - Object to represent a file.
#!/usr/bin/env perl -w use strict; use File::RegexMatch::File; File::RegexMatch::File->new(path => '/path/to/file');
This module allows each file that has been located by File::RegexMatch to be represented by an object. The object has methods for retrieving information about the file using the File::stat module. There are different levels of support for certain filesystems. See stat for further information.
Constructor for the object. Takes one parameter, which is the path of the file. The library will croak if stat cannot be called on the file path.
Returns the absolute path of the file.
Returns the device number of the filesystem.
Returns the inode number.
Returns the type and permissions of the file.
Returns the number of hard links to the file.
Returns the numeric user ID of the file owner.
Returns the numeric group ID of the file owner.
Returns the device identifer.
Returns the total size of the file in bytes.
Returns the last access time in seconds since the epoch.
Returns the last modify time in seconds since the epoch.
Returns the incode change time in seconds since the epoch.
Returns the preferred I/O size in bytes for interacting with the file.
Returns the actual number of system-specific blocks allocated on the disk.
File::stat
stat
Please report any bugs or feature requests to lloydg@cpan.org
Lloyd Griffiths
Copyright (c) 2013 Lloyd Griffiths
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install File::RegexMatch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::RegexMatch
CPAN shell
perl -MCPAN -e shell install File::RegexMatch
For more information on module installation, please visit the detailed CPAN module installation guide.