http://www.perlmonks.org?node_id=699953


in reply to Freeze @INC?

I read this several times and it's not clear to me if you mean you want to cache the value of @INC, the variable, or snapshot the state on disk.

If it's the former, and you only have data in your computed @INC (not code), you can indeed just serialize to a file and load it in a BEGIN block. You'd probably want your own serialization as Storable might be on the list of things you want to control!

If the latter, I'd suggest avoiding symlink hell and just using PAR.