The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

File::Stat - OOP interface for Perl's built-in stat() functions

SYNOPSIS

  use File::Stat;                               # normaly
  use File::Stat qw/:stat/;             # override stat
  use File::Stat qw/:lstat/;    # override lstat
  use File::Stat qw/:override/; # = qw/:stat :lstat
  use File::Stat qw/:global/;   # export $st_* valiable
  use File::Stat qw/:all/;              # all exports

  $stat         = new File::Stat($file_name||$file_handle);
  $stat         = stat( $file );        # optional
  @stat         = stat( $file );        # return normal array(not object)
  $lstat        = lstat( $file );       # optional
  @lstat        = lstat( $file );       # return normal array(not object)

  #OOP I/F
  $stat->dev;           # or $stat->[0];
  $stat->ino;           # $stat->[1]; alias $stat->inode
  $stat->mode;          # or $stat->[2];
  $stat->nlink;         # or $stat->[3];
  $stat->uid;           # or $stat->[4];
  $stat->gid;           # or $stat->[5];
  $stat->rdev;          # or $stat->[6];
  $stat->size;          # or $stat->[7];
  $stat->atime;         # or $stat->[8];
  $stat->mtime;         # or $stat->[9];
  $stat->ctime;         # or $stat->[10];
  $stat->blksize;       # or $stat->[11];
  $stat->blocks;        # or $stat->[12];

  # optional export 
  stat($file_name||$file_handle);
  $st_dev
  $st_ino
  $st_mode
  $st_nlink
  $st_uid
  $st_gid
  $st_rdev
  $st_size
  $st_atime
  $st_mtime
  $st_ctime
  $st_blksize
  $st_blocks

DESCRIPTION

simply OOP I/F by the name. name space not tainted default. if Perl5.8 or higher then use File::stat.

AUTHOR

Shin Honda<lt>makoto@cpan.jp<gt>

SEE ALSO

stat.