Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    File::Stat::OO 0.03

    Download button

    No screenshots available
    Downloads: 203  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Dan Horne | More programs
    Perl Artistic License / FREE
    May 12th, 2010, 19:08 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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 seconds

    or 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



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    file status attributes | object-oriented interface | Perl module | object-oriented | interface | status

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM