in reply to Re: Automatically Rewrite Shebang Line on Multiple Files
in thread Automatically Rewrite Shebang Line on Multiple Files
for %q in (*.cgi *.pl) do ( perl -pi.bak -e"s{^#!/usr/bin/perl}{#!/usr/local/bin/perl}" "%q" )
Change for to for /r for a recursive solution.
Update: Simplified solution
In Section
Seekers of Perl Wisdom