in reply to Dynamically choosing the perl path

The canonical approach would be to use

#!/usr/bin/env perl

Differing paths to env will torpedo this, of course.