If I have the following code in a file called Makefile.PL

use FindBin;
print "$FindBin::Bin\n";

perl Makefile.PL  prints

/home/gabor/work/pugs

no matter where the file is located.

If the file is called a.pl  with the same content
it prints the correct directory as expected.

perl 5.8.8 on Ubuntu
perl -MFindBin -e'print $FindBin::VERSION'  is 1.47

The only environment variable I can see containing pugs is PATH

Gabor

Reply via email to