in reply to Re^3: Do modules know the callers full path?
in thread Do modules know the callers full path?

I looked into FindBin and it's essentially applying Cwd inside a BEGIN block to grab it as soon as possible.

So it's prone to the same (potential) problem of a chdir prior at compile-time.

That's a built-in race condition, how soon is soon enough and you can't avoid someone to be sooner ....

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^4: Do modules know the callers full path?