Perl

How do I replace a string with another string in all files? For example, ~/foo directory has 100s of text file and I’d like to find out xyz string and replace with abc. I’d like to use sed or any other tool to replace all occurrence of the word.

{ 59 comments }

Q. I’m using lighttpd under CentOS 5 and getting the following error: …can’t handle ‘$HTTP[url] =~ …’ as you compiled without pcre support. My question is What is pcre support, and how do I solve this problem? A. Pcre is nothing but Perl-compatible regular expression library. PCRE has its own native API, but a set […]

{ 0 comments }

Q. How do I find out my IP address assigned to eth0 or ra0 interface using perl? A. If you need to know the IP address of the UNIX / Linux machine you are running on, use the following perl one liner. Perl don’t have any inbuilt facility but combination of ifconfig command ans shell […]

{ 11 comments }

According to wikipedia “A content management system (CMS) is a computer software system for organizing and facilitating collaborative creation of documents and other content. A content management system is frequently a web application used for managing websites and web content, though in many cases, content management systems require special client software for editing and constructing […]

{ 0 comments }