File::stat 0.1
Sponsored Links
File::stat 0.1 Ranking & Summary
File size:
14.2 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
911
Date added:
2007-04-27
Publisher:
Tom Christiansen
File::stat 0.1 description
File::stat is a by-name interface to Perls built-in stat() functions.
SYNOPSIS
use File::stat;
$st = stat($file) or die "No $file: $!";
if ( ($st->mode & 0111) && $st->nlink > 1) ) {
print "$file is executable with lotsa linksn";
}
use File::stat qw(:FIELDS);
stat($file) or die "No $file: $!";
if ( ($st_mode & 0111) && $st_nlink > 1) ) {
print "$file is executable with lotsa linksn";
}
This modules default exports override the core stat() and lstat() functions, replacing them with versions that return "File::stat" objects. This object has methods that return the similarly named structure field name from the stat(2) function; namely, dev, ino, mode, nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, and blocks.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that this still overrides your stat() and lstat() functions.) Access these fields as variables named with a preceding st_ in front their method names. Thus, $stat_obj->dev() corresponds to $st_dev if you import the fields.
To access this functionality without the core overrides, pass the use an empty import list, and then access function functions with their full qualified names. On the other hand, the built-ins are still available via the CORE:: pseudo-package.
SYNOPSIS
use File::stat;
$st = stat($file) or die "No $file: $!";
if ( ($st->mode & 0111) && $st->nlink > 1) ) {
print "$file is executable with lotsa linksn";
}
use File::stat qw(:FIELDS);
stat($file) or die "No $file: $!";
if ( ($st_mode & 0111) && $st_nlink > 1) ) {
print "$file is executable with lotsa linksn";
}
This modules default exports override the core stat() and lstat() functions, replacing them with versions that return "File::stat" objects. This object has methods that return the similarly named structure field name from the stat(2) function; namely, dev, ino, mode, nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, and blocks.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that this still overrides your stat() and lstat() functions.) Access these fields as variables named with a preceding st_ in front their method names. Thus, $stat_obj->dev() corresponds to $st_dev if you import the fields.
To access this functionality without the core overrides, pass the use an empty import list, and then access function functions with their full qualified names. On the other hand, the built-ins are still available via the CORE:: pseudo-package.
File::stat 0.1 Screenshot
File::stat 0.1 Keywords
interface to
stat
functions
Perls
built-in
interface
import
File::stat
Filestat
File::stat 0.1
Libraries
Programming
Bookmark File::stat 0.1
File::stat 0.1 Copyright
WareSeeker periodically updates pricing and software information of File::stat 0.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of File::stat 0.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
state farm insurance
functions of money
united states postal service
trigonometric functions
state of the union address
state farm
functions of the skin
state of ohio
state of illinois
functions of the liver
functions of public relations
brain functions
touch interface
united states map
static x
radio stations
state abbreviations
what are the functions of the liver
Related Software
File::Stat::Bits - stat bit mask constants. Free Download
Filesys::Ext2 is a Perl interface to ext2 and ext3 filesystem attributes. Free Download
A performance analysis and monitoring tool for Solaris and Linux Free Download
MetaFS is an advanced filesystem metadata layer. Free Download
File::Remote is a Perl module to read/write/edit remote files transparently. Free Download
File::Stat::ModeString - conversion file stat mode to/from string representation. Free Download
Libface is a special library exclusively for face recognition and it is built over Intels OpenCV Library. Free Download
Lufs::C is a C interface to perl. Free Download
Latest Software
Popular Software
Favourite Software