I hope not because switching from $0 to __FILE__ would not help resolve that problem at all. $0 eq __FILE__ in both runs.
In case you missed it, I brought up that problem and posted a solution to it earlier in the thread: swap the order of abs_path and dirname.
He's surely referring to adding to @INC in a file that's loaded using require or do.
In reply to Re^4: adding library directories relative to $0
by ikegami
in thread adding library directories relative to $0
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |