Please see Tutorials re regular expressions (or any standard Perl text).

... and re "...please give me perl code..."

Please also read (more carefully!) the instructions about formatting your posts at the text-entry (and edit!) box immediately beneath the text of your node when the node is the first one rendered. (click on the linked "Re..." at the top of the poorly formatted node).

Please search for "homework" (inter alia) and read On asking for help & How do I post a question effectively? before asking PM to "give" you code. We'll be happy to help you learn, but donating code for your business is NOT a high priority here... and doing your homework provides you with very little help in learning Perl.

Lastly: your questions suggest you may be trying to adapt a script you did not write; that you have very little, if any, Perl background. That's OK. That's what set many of us to the work of learning Perl. So, do so....

...but here's a freebie: recognize that generally, when Perl advances from one version to another, or when you try to move a script from one machine (OS) to another, you may to make some modifications to working code. And modifying a working script (which uses an earlier Perl version or runs correctly on a different machine) with suggestions about how to deal with a problem on another machine or with a different Perl version is UNwise and unlikely to be useful.


In reply to Re^5: perl code not working after moved new host with latest perl version by ww
in thread perl code not working after moved new host with latest perl version by dpprabhuindia

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.