From perldoc -f stat:
If "stat" is passed the special filehandle consisting of an underline, no stat
is done, but the current
contents of the stat structure from the last "stat", "lstat", or filetest are
returned. Example:
if (-x $file && (($d) = stat(_)) && $d < 0) {
print "$file is executable NFS file\n";
}
(This works on machines only for which the device number is negative under NFS.)
We are looking for openstack and python developers.
Please check: http://www.nsbeta.info/jobs
Wed, 19 Mar 2014 01:44:15 -0400 from shawn wilson <[email protected]>:
>On Tue, Mar 18, 2014 at 11:32 PM, John W. Krahn < [email protected] > wrote:
>> Shaji Kalidasan wrote:
>
>>
>> or stat() or lstat()
>
>I don't remember seeing that reusing i?stat would not duplicate the
>stat call...?
>
>--
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>http://learn.perl.org/
>
>