in reply to Is it possible to localize the stat/lstat cache?
I like your version with %Stat (I wouldn't capitalize it in my style, but do what fits in your program's style of course).
A single call to stat though will return your mode, size, atime, mtime, ctime, and more. It's not from the current user's point of view like the -X functions, and it's not directly yes/no answers either. It may be handy to get all that information at once.
What I'd like to know is why you have an issue with building %Stat this way. Do you really want to localize the magical _ rather than put its results in the hash? What are you wanting that to buy you?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is it possible to localize the stat/lstat cache?
by Anonymous Monk on Apr 20, 2015 at 12:34 UTC | |
by bounsy (Acolyte) on Apr 20, 2015 at 12:40 UTC |