<?xml version="1.0" encoding="windows-1252"?>
<node id="989723" title="Re^2: A complicated file parsing and 2D array/matrix problem." created="2012-08-25 09:10:27" updated="2012-08-25 09:10:27">
<type id="11">
note</type>
<author id="955048">
zing</author>
<data>
<field name="doctext">
Thanks for suggestions. This is what I have tried, but am not able to go past this.
&lt;code&gt;my $file = "LIST";
open (FH, "&lt; $file") or die "Can't open $file for read: $!";
my @hsa_sub = &lt;FH&gt;;

for($x=0;$x&lt;=$#hsa_sub;$x++)
{
	$s=$hsa_sub[$x];
	$sline=`cat siper_sub | grep -n $s`;
	`sed '/substrate/!d; /$s/!d;{n;p}' everything_hsa | grep -i product | awk {'print $2,$3,$4'} &gt;&gt; prodlist`
	
	my $fil = "prodlist";
	open (FH, "&lt; $fil") or die "Can't open $fil for read: $!";
	my @prod.$s.$x = &lt;FH&gt;;

}&lt;/code&gt;</field>
<field name="root_node">
989718</field>
<field name="parent_node">
989721</field>
</data>
</node>
