in reply to Re^2: does perl cache between invocations?
in thread does perl cache between invocations?
It's much lower level than that. The OS knows whether or not anything has tried to write to that part of the filesystem, so if nothing has, it knows its cache of the file is still good. Perl is still compiling every time -- the opcode tree of your program is not stored anywhere between calls to it -- but the actual file access that is sped up.