Hello Srvan937,
If you are new to Perl but you are familiar with programming in some other language, it won't take you long to figure out how to do what you want in Perl. Perl is actually really good at this and makes it easy for you to do it.
If you are not only new to Perl but new to programming, then you really only have two avenues open to you.
Rather than ask here for a quick answer, you should visit perl.org and start with one of the basic tutorials there. Or get the book Beginning Perl, or read it on line for free at https://www.perl.org/books/beginning-perl/. Or visit http://www.perlmaven.com and do Gabor's basic tutorial. Etc.
Any of these beginner's guides will have you reading in lines from a file and finding text patterns within a couple of days at the most. It's one of the most common things that people come to Perl wanting to do, so you'll find it early on in any tutorial.
Go, teach yourself the basics, and then when you have some code that you've written that won't do what you want, come back and you'll definitely get help with your questions!
In reply to Re: How do i search and extract commented lines from a file using perl?
by 1nickt
in thread How do i search and extract commented lines from a file using perl?
by sravan937
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |