On Thu, Feb 18, 2010 at 11:24:24AM +0000, Nicholas Clark wrote: > On Wed, Feb 17, 2010 at 08:44:57AM -0800, macke...@animalhead.com wrote: > > $^X is simpler, and simpler solutions are preferable. > > Can it be wrong? > Yes. > For starters, it may be a relative path, and the program has already changed > directory.
I'm not sure that this particular reason is true, at least not with vaguely modern perls: $ ../cpantesting/perl-5.8.9/bin/perl -e 'chdir "../tmp" && print "$^X\n"' /home/david/cpantesting/perl-5.8.9/bin/perl The others are though, and VMS also does Weird Stuff. I've updated http://wiki.cpantesters.org/wiki/CPANAuthorNotes to explain more about $^X, and why not to use it. -- David Cantrell | top google result for "topless karaoke murders" It wouldn't hurt to think like a serial killer every so often. Purely for purposes of prevention, of course.