in reply to Dynamic $^X

You could try to just put the version number in the shebang line, such as #!/usr/local/bin/perl5.12.2. Most systems will have perl installed with the version number in the filename too.