fix-perl-path.PL - A script to correct the shebang line to match the current platform
perl fix-perl-path.PL /absolute/path/to/foo
This script should be run from the base of the directory structure which contains the file(s) that need the shebang line corrected. It will recurse through all directories below the one called from and modify all .pl files.
This sub will recurse through a given directory and its subdirectories checking for the existence of a shebang line in .pl files and replacing it with the correct line for the current OS if needed. It should be called in a manner similar to 'fixshebang (foodir)' but may be supplied with any directory.