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.

  1. Pay someone to do the task for you, remembering that if you pay $0.00 then that will probably be the approximate worth of the work you receive.
  2. Put in the work yourself to learn how to do the task. As I said, Perl makes this sort of thing very easy, so once you do the work of learning how, actually completing your task will be trivial.

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.