in reply to Dynamic $^X

why not just use
#!/usr/bin/env perl
it is then up to your environment to set up which perl to use, which may be 5.8 on one machine and 5.10 on another.