in reply to Different perl locations on different servers.
For example, here's a quick version that would replace the #!/path/to/perl line at the top of each file with a path that you pass in:
#!/bin/sh PERL=$1 for file in `find . -name '*.pl'` do perl -i -ape 's/^#!\s*(.*perl)\s*(.*)$/#!$ENV{PERL} $2/;' $file done
I have a script similar to this that I use to increment the release version in all the 'configure.in' files in our release packages at work, so I think this might help you out.
---
echo S 1 [ Y V U | perl -ane 'print reverse map { $_ = chr(ord($_)-1) } @F;'
|
|---|