in reply to Re^2: use lib $lib_dir not working
in thread use lib $lib_dir not working

that FindBin is broken

well. the objections against FindBin I read so far always have to do with using FindBin after you changed the directory. If I had a script somewhere in my repository that does a chdir in a BEGIN block and if such a weird thing is really necessary, I can place FindBin even before that BEGIN block and everything's fine. If the script uses a module that does a chdir in a BEGIN block then I probably have other problems anyway.

So if you know what you're doing IMHO FindBin is handy and safe enough. Do you always use $[ instead of 0 just because a script could set it somewhere? ;-)

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.