in reply to FindBin works differently on Fedora Core 2?

FindBin uses Cwd::abspath, which has different implemetations (i.e. _perl_abs_path or an XS implementation). You can check by using

perl -MCwd -e 'warn \&Cwd::abs_path == \&Cwd::_perl_abs_path'

Replies are listed 'Best First'.
Re^2: FindBin works differently on Fedora Core 2?
by samtregar (Abbot) on Jun 08, 2004 at 16:51 UTC
    Another fine idea, but both these systems are using the XS version according to your test.

    -sam

      And the XS code has also different paths, depending if your system supports fchdir or not. Can you check in the debugger whether it is actually abs_path which gives different results?
        They give the same results, both appear to strip trailing spaces:

        Fedora1:

        $ perl5.8.3 -MCwd=abs_path -e 'print abs_path("/tmp/")' /tmp

        Fedora2:

        $ perl5.8.3 -MCwd=abs_path -e 'print abs_path("/tmp/")' /tmp

        -sam