APR fileinfo structure provides somewhat similar information to Perl's
stat() call, but you will want to use this module's API to query an
already stat()'ed filehandle to avoid an extra system call or to
query attributes specific to APR file handles.

During the HTTP request handlers coming after
PerlMapToStorageHandler,
$r->finfo
already contains the cached values from the apr's stat() call. So
you don't want to perform it again, but instead get the ARP::Finfo
object via:

Notice that you can also use the constants that already combine
several elements in one. For example
APR::Const::FINFO_PROT
asks for all protection bits,
APR::Const::FINFO_MIN asks
for the following fields: type, mtime, ctime, atime, size and
APR::Const::FINFO_NORM
asks for all atomic unix apr_stat() fields (similar to perl's
stat()).