On Wed, Mar 23, 2005 at 06:37:12PM +1100, Andrew Savige wrote: > When writing tests that run Pugs, the Pugs-equivalent of $^X would seem > handy to me. I could run it with system("pugs tsanta.p6 ...") but that > seems bad. Any other ideas?
As of r1079, there is $?EXECUTABLE_NAME (that is, $^X in perl5) and $?PROGRAM_NAME (that is, $0 in perl5). Note that those two things are unspecced -- I just pulled them out from perlvar. With a compiled binary, $?EXECUTABLE_NAME may not even make sense, nor does $?PROGRAM_NAME for many of its uses, though. That was a classic problem with PAR -- I end up just setting the former to "perl" and the latter to a temp file that contains the original source code. Not sure Perl 6 wants to go that route... Thanks, /Autrijus/
pgpWyQmlRpSBQ.pgp
Description: PGP signature