in reply to Re: Exec() argument format
in thread Exec() argument format

ok, thankyou

but just for clarifictaion can you give me an example of $^X in use.

cheers, MonkPaul.

Replies are listed 'Best First'.
Re^3: Exec() argument format
by radiantmatrix (Parson) on Jul 26, 2005 at 13:40 UTC

    $^X is just a special variable, and it contains a string representing the full path to the current Perl interpreter. This is very helpful if you have more than one Perl installed.

    For example, try running the following:

    perl -e 'print $^X'

    On the Win32 machine I'm using here at work, with ActiveState Perl, this prints:

    C:\Perl\bin\perl.exe
    
    <-radiant.matrix->
    Larry Wall is Yoda: there is no try{} (ok, except in Perl6; way to ruin a joke, Larry! ;P)
    The Code that can be seen is not the true Code
    "In any sufficiently large group of people, most are idiots" - Kaa's Law