in reply to get binary executing my script

Will the special Perl variable $] do what you want?
$] The first part of the string printed out when you say perl -v. It can be used to determine at the beginning of a script whether the Perl interpreter executing the script is in the right range of versions. If used in a numeric context, $] returns version + patchlevel /1000.

Replies are listed 'Best First'.
Re^2: get binary executing my script
by prashanthch (Novice) on Mar 16, 2012 at 18:35 UTC
    Hi

    thanks for the reply, no it doesn't do exactly what I want to do. it gives me the version info but the versions of perla and perlb are the same

    thanks