Re: scary and strange thing in FindBin

2008-08-11 Thread Todd Rinaldo
On Sun, Aug 10, 2008 at 9:30 PM, Aristotle Pagaltzis <[EMAIL PROTECTED]> wrote: > * Graham Barr <[EMAIL PROTECTED]> [2008-08-11 03:05]: >> On Aug 9, 2008, at 8:38 PM, Aristotle Pagaltzis wrote: >>> * Todd Rinaldo <[EMAIL PROTECTED]> [2008-08-10 03:35]: What alternatives do you recommend? >>> >

Re: scary and strange thing in FindBin

2008-08-10 Thread Eric Wilhelm
# from Aristotle Pagaltzis # on Sunday 10 August 2008 19:30: >>> See Tom Heady’s reply on this thread. >> >> Which also as issues, albeit maybe fewer. > >Yes, it will fail in some very rare cases. However, it does so loudly >and predictably. Oh? 'chdir dirname( rel2abs( $0 ) );' doesn't look to

Re: scary and strange thing in FindBin

2008-08-10 Thread Aristotle Pagaltzis
* Graham Barr <[EMAIL PROTECTED]> [2008-08-11 03:05]: > On Aug 9, 2008, at 8:38 PM, Aristotle Pagaltzis wrote: >> * Todd Rinaldo <[EMAIL PROTECTED]> [2008-08-10 03:35]: >>> What alternatives do you recommend? >> >> See Tom Heady’s reply on this thread. > > Which also as issues, albeit maybe fewer.

Re: scary and strange thing in FindBin

2008-08-10 Thread Graham Barr
On Aug 9, 2008, at 8:38 PM, Aristotle Pagaltzis wrote: * Todd Rinaldo <[EMAIL PROTECTED]> [2008-08-10 03:35]: What alternatives do you recommend? See Tom Heady’s reply on this thread. Which also as issues, albeit maybe fewer. IIRC when FindBin was written there were some system where $0 w

Re: scary and strange thing in FindBin

2008-08-09 Thread Aristotle Pagaltzis
* Todd Rinaldo <[EMAIL PROTECTED]> [2008-08-10 03:35]: > What alternatives do you recommend? See Tom Heady’s reply on this thread. Regards, -- Aristotle Pagaltzis //

Re: scary and strange thing in FindBin

2008-08-09 Thread Todd Rinaldo
On Sat, Aug 9, 2008 at 6:43 AM, Aristotle Pagaltzis <[EMAIL PROTECTED]> wrote: > * Gabor Szabo <[EMAIL PROTECTED]> [2008-08-09 12:15]: >> 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/pu

Re: scary and strange thing in FindBin

2008-08-09 Thread Tom Heady
Gabor Szabo wrote: On Sat, Aug 9, 2008 at 1:22 PM, Paul Johnson <[EMAIL PROTECTED]> wrote: On Sat, Aug 09, 2008 at 01:09:23PM +0300, Gabor Szabo wrote: 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/pu

Re: scary and strange thing in FindBin

2008-08-09 Thread Aristotle Pagaltzis
* Gabor Szabo <[EMAIL PROTECTED]> [2008-08-09 12:15]: > 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. And whenever I tell people that FindBin

Re: scary and strange thing in FindBin

2008-08-09 Thread Gabor Szabo
On Sat, Aug 9, 2008 at 1:22 PM, Paul Johnson <[EMAIL PROTECTED]> wrote: > On Sat, Aug 09, 2008 at 01:09:23PM +0300, Gabor Szabo wrote: >> 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/pu

Re: scary and strange thing in FindBin

2008-08-09 Thread Paul Johnson
On Sat, Aug 09, 2008 at 01:09:23PM +0300, Gabor Szabo wrote: > 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 w

scary and strange thing in FindBin

2008-08-09 Thread Gabor Szabo
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 Ubun