in reply to How can i read the lines and store them in an array like following fashion?
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, $_; }
|
|---|