On Wed, 18 Aug 2004, Nick Ing-Simmons wrote: > Gopakumar Ambat <[EMAIL PROTECTED]> writes: > >Hello, > >I have a PERL script being launched from my C++ code; the .pl file exists in > > > >C:\myperl\script, the .pm it "use"s is in C:\myperl\perl\modules. To resolve > >the .pm path, I have > >use lib"../perl/modules" #resolves path to C:\myperl\perl\modules > > The FindBin module is handy for 'use lib' lines that allows > you to get full path and avoid problems if script does chdir() > and so makes ../ wrong.
Just don't try to use FindBin in a large WAN-based filesystem like AFS! Whatever algorithm is used goes off and tries to crawl through umpteen directory paths which the user is not likely to have access to, or which are offline or on a Sloowww connection. Brings things to quite a halt <g>. Quote of the Year: "The five person voting panel voted 57 to 3.14 in favour of getting rid of the Diebold machines." - 'Downside'