NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Is FindBin unfixable? (Score:2)
Reply to This
Re: (Score:1)
It seems quite unfixable to me. The whole point of FindBin is that if it can’t locate the script via
$0it will try to find it in thePATH– and that is also the source of its brokenness, because it leads to bizarre failure modes every once in a blue moon, when FindBin finds something and thinks it’s the script, when it’s not.Ripping that behaviour out 10 years after the fact doesn’t seem wise, even if the behaviour is broken for some edge cases. I’d prefer to deprecate