in reply to How can i read the lines and store them in an array like following fashion?
Gah! I replied to the reaped node - c'mon sanjay, make an effort here... oh well, here's my reply to the reaped node...
What have you tried so far? C'mon - show us the code... ;)
Okay - here's some help...(untested)
my @array; open(IFILE, "item.txt"); while(<IFILE>){ chomp; if(/ITEM NO\:/ && defined @array){ MySub(@array); undef @array; } push @array, $_; }
|
|---|