This is more reliable than $^X

see 'How should I invoke perl from my test scripts' at http://wiki.cpantesters.org/wiki/CPANAuthorNotes for details.

Using Probe::Perl is even better, as it copes with some *really* obscure edge-cases, but it also adds another dependency.