如何使用Perl搜索和替换目录中的文件内容 [英] How Can I search and replace the Contents Of The File In The Directory,Using Perl
本文介绍了如何使用Perl搜索和替换目录中的文件内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能够读取文件内容,但我需要信息来提取文件的特定内容
i am able to read the file contents ,but i need information to extract the specific content of the file
推荐答案
my
contents = ~s / FIND / REPLACE / g;
contents =~ s/FIND/REPLACE/g;
这篇关于如何使用Perl搜索和替换目录中的文件内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文