Discipulus has asked for the wisdom of the Perl Monks concerning the following question:
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)