On Fri, Jul 08, 2005 at 07:47:42PM -0400, James E Keenan wrote:
> scripts/
> xyz.pl
Make sure MakeMaker is told about that script via EXE_FILES or it won't know
to do anything with it (like install it).
> I would like to be able to write tests which call xyz.pl with different
> combinations of options and examine the results. I assume that I would
> have to call the utility with something like this:
>
> system(xyz.pl -V);
>
> The problem I'm facing is that the version of XYZ that I want xyz.pl to
> 'use' is the version I am currently developing, namely, the one that
> will be placed in 'blib/lib' by 'make'.
Do the same thing you'd do from the command line.
perl -Mblib xyz.pl -V
which translates into:
# $^X is the current perl.
system("$^X -Mblib xyz.pl -V");
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern
Reality is that which, when you stop believing in it, doesn't go away.
-- Phillip K. Dick