File::Stat::OOOO interface for accessing file status attributes | |
Download |
File::Stat::OO Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Dan Horne
- Publisher web site:
- http://search.cpan.org/~dhorne/
File::Stat::OO Tags
File::Stat::OO Description
OO interface for accessing file status attributes File::Stat::OO is an object-oriented interface for accessing file status attributes.SYNOPSIS use File::Stat::OO; my $foo = File::Stat::OO->new({file => '/etc/password'}); $foo->stat; # stat file specified at instantiation time print $foo->size; print $foo->mtime; # modification time in epoch secondsor inflate epoch seconds into DateTime objects my $foo = File::Stat::OO->new(); $foo->use_datetime(1); # Or the two lines above can be combined as # my $foo = File::Stat::OO->new({use_datetime => 1}); $foo->stat('/etc/password'); # pass file name to the stat method print $foo->mtime; # returns DateTime object not an epoch print $foo->mtime->epoch; # epoch seconds Requirements: · Perl
File::Stat::OO Related Software