I hadn't taken a look at File::stat before. It looks like the version for Perl 5.12 has many of the features I'd be interested in, but unfortunately my code needs to work on 5.10 or higher. 5.10 doesn't support overloading of -X and I'd have to create my own cando function (or equivalent), so the extra effort involved in an attempt to use a standard module that doesn't do what I need it do is probably more than it's worth.

I will remember it for later, though, once I can start assuming a newer Perl version.


In reply to Re^2: Is it possible to localize the stat/lstat cache? by bounsy
in thread Is it possible to localize the stat/lstat cache? by bounsy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.