Thanks Utiltarian. This is the first time I have asked a question. to further clarify what I am asking, the original $working_file looks like this: 1001201001030000000000745706511000001785565602 0000000 00000008523978089697855656020003 1002201001030000000000415480038500001785565602 0000000 00000008523978089697855656020003 1003201001030000000000415480038600002785565602 0000000 00000008523978089697855656020003 1004201001030000000007897850196300002785565602 0000000 00000008523978089697855656020003 1005201001030000000000415480268500001785565602 0000000 00000008523978089697855656020003 1006201001030000000000415486051000001785565602 0000000 00000008523978089697855656020003 1007201001030000000000745700340000002785565602 0000000 00000008523978089697855656020003 1008201001030000000000745700331000001785565602 0000000 00000008523978089697855656020003 1009201001030000000000725541110000001785565602 0000000 00000008523978089697855656020003 1010201001030000000000745706510900001785565602 0000000 00000008523978089697855656020003 1011201001030000000000745700240000001785565602 0000000 00000008523978089697855656020003

and the first 4 chars is the store number. If store 1002, 1009 & 1010 are in @store list the $working_file should looks like this:

1001201001030000000000745706511000001785565602 0000000 00000008523978089697855656020003 1003201001030000000000415480038600002785565602 0000000 00000008523978089697855656020003 1004201001030000000007897850196300002785565602 0000000 00000008523978089697855656020003 1005201001030000000000415480268500001785565602 0000000 00000008523978089697855656020003 1006201001030000000000415486051000001785565602 0000000 00000008523978089697855656020003 1007201001030000000000745700340000002785565602 0000000 00000008523978089697855656020003 1008201001030000000000745700331000001785565602 0000000 00000008523978089697855656020003 1011201001030000000000745700240000001785565602 0000000 00000008523978089697855656020003


In reply to Re^2: delete a line from a file by vbynagari
in thread delete a line from a file by vbynagari

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.