SPVM::Sys::IO::Stat - struct stat in C language
use Sys::IO; use Sys::IO::Stat; my $file = "foo.txt"; my $stat = Sys::IO::Stat->new; Sys::IO->stat($file, $stat); my $st_mode = $stat->st_mode; my $st_size = $stat->st_size;
Sys::IO::Stat is the class for the struct stat in C language.
Sys::IO::Stat
struct stat
C language
This is a pointer class.
static method new : Sys::IO::Stat ();
Create a new Sys::IO::Stat object.
method DESTROY : void ();
The destructor.
method st_dev : int ();
Get st_dev.
st_dev
method st_ino : int ();
Get st_ino.
st_ino
method st_mode : int ();
Get st_mode.
st_mode
method st_nlink : int ();
Get st_nlink.
st_nlink
method st_uid : int ();
Get st_uid.
st_uid
method st_gid : int ();
Get st_gid.
st_gid
method st_rdev : int ();
Get st_rdev.
st_rdev
method st_size : long ();
Get st_size.
st_size
method st_blksize : long ();
Get st_blksize.
st_blksize
method st_blocks : long ();
Get st_blocks.
st_blocks
method st_mtime : long ();
Get st_mtime.
st_mtime
method st_atime : long ();
Get st_atime.
st_atime
method st_ctime : long ();
Get st_ctime.
st_ctime
Copyright 2022-2022 Yuki Kimoto, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.