I need a program i.e. code of perl script for the following requirement: I shall be passing the directory along with the path and date in mm/dd/yyyy format as params to this perl script and then under this directory path there are sub directories eg dir1 ,dir2, dir3. Now the perl program has to go to each sub directory and match the date of each file with the passed input date parameter. It has to generate a report like this VENDOR TECHNOLOGY Node name Files not matched -------------------------------------------------------------------------------------------------------- ERICSSON GSM NODE-A 1.A ERICSSON GSM NODE-A 2.B ------------------------------------------------------------------------------------------------------ Total files not matched =2 and total number of files=10((in this diectory/node) ---------------------------------------------------------------------------------------------------------- VENDOR TECHNOLOGY Node Name Files not Matched ------------------------------------------------------------------------------------------------------------ ERICSSON GSM NODE-B 1.C ERICSSON GSM NODE-B 2.C --------------------------------------------------------------------------------------------------------------------- Total files not matched=2 and total number of files=20 (in this diectory/node) --------------------------------------------------------------------------------------------------------------- Summary %success=26/30*100 =86.67%


In reply to Please advice by ashish_sun123

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.