Hi monks

1)I have a sub that scan Something returning a ref to an array of caracteristic. This sub use the format LINES to write to a log file.

2)another sub receive some parameters from input and open the last log file looking for records that match the parameters you specified. this sub use the format STDOUT to print out the results.the format start with an index. The sub return a ref to an array-of-array where the first level are the indexes and the second level are the two elements (like: h5 91)necessary to identify univocally elements of that something I scanned

3)I pass to the first sub this refer (eg h5 91)that re-scan the element.

here the problem)if I print from the sub the results are correct, instead if I return a array-ref and try to write out this caracteristics with the STDOUT format, I receive the last one result from passage 2 (ie scanning the log file)


some ideas ?? greetings lor*

In reply to format or buffer (or brain) problem ? by Discipulus

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.