in reply to "localise" package's our variables? They affect other packages (e.g. File::Temp::KEEP_ALL)

This does not answer the technical aspects of the question, but it might be worth considering Test::TempDir::Tiny as an alternative approach.

  • Comment on Re: "localise" package's our variables? They affect other packages (e.g. File::Temp::KEEP_ALL)

Replies are listed 'Best First'.
Re^2: "localise" package's our variables? They affect other packages (e.g. File::Temp::KEEP_ALL)
by bliako (Abbot) on Oct 11, 2024 at 11:13 UTC

    Thank you, that is the simplest solution. Additionally it allows for env var PERL_TEST_TEMPDIR_TINY_NOCLEANUP to be set to 1 and keep the temp files at the end of the successful test anyway.

    I am tempted to fork and rename it to something which does not contain "Test::" as I intend to use this in code other than testing :)