It would have been better to reply to my post rather than update the existing node.
There is something not quite right here ;
Var Output Expected --- ------------------------- ----------------------- $Gkel_gz[0] Gkel_Check.I.Jun13.dat.gz Gkel_check.1.ABC.dat.gz $Count 00108418 108418 $Count 00108418 108418 $Check[0][0] Check.I.ABC_TT1.dat check.1.ABC_TT1.dat $Check[0][1] 278 470 $Gkel[0] , Gkel_check.1.ABC.dat $Count1 -470 107670 $Count1 -470 107670 $Check[1][0] Check.I.AB_TT1.dat Check.I.AB_TT1.dat $Check[1][1] 470 278
You said the files were like this
Gkel_check.1.ABC.dat.gz Gkel_check.1.ABC.dat check.1.ABC_TT1.dat check.1.AB_TT1.dat
I don't understand how you can you get Gkel_Check.I.Jun13.dat.gz in the output ? Also, how does this match m/^check.*Check.dat$/ give these
Check.I.ABC_TT1.dat Check.I.AB_TT1.dat
in the output ?
poj

In reply to Re^3: regarding file from the directory and executing some commands and placing the out put on exceel sheet. by poj
in thread regarding file from the directory and executing some commands and placing the out put on exceel sheet. by Perlseeker_1

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.