I want to replace a Perl module name in all my Perl Scripts in the cgi-bin directory. How is it possible?
I have the following statement in my scripts
use myUtil;
I want to change it to
use myUtil777;
Regards,
Rahul
I want to replace a Perl module name in all my Perl Scripts in the cgi-bin directory. How is it possible?
I have the following statement in my scripts
use myUtil;
I want to change it to
use myUtil777;
Regards,
Rahul
You can use perl itself
for filename in *.pl
do
perl -p -i.bak -e "s/myUtil/myUtil777/g" $filename
done
find . -name *.pl -type f | xargs perl -pi -e 's/myutil/myutil777/g'
Regards,
Rahul.