in reply to Picking out text

a couple things... looks like my code anyway :)
do push @LS, [split('\|',$_)]; then your @LS with be an array of arrays... pushing a split onto an array puts all your data onto the array each as new elements...

then to print the data out separately you can do...

for(@LS) { #go through @LS 1 by 1, putting array ref into $_ print "<TD>$el @{$_}</TD>"; #print each line converting arrayref int +o array for printing ## or you could do print "<TD>$_->[1]</TD>";# to print just the team name... etc }
Update:
Actually, for what you are doing I would just do...
my @line = split('\|',$_); print "<TR><TD COLSPAN=10>Team: $_->[1] Score: $_->[0]</TD></TR>"; print "<TR><TD><B>Innings</B></TD>"; for(my $i = 2; $i <= 11; $i++) { print "<TD>$_->[$1]</TD>"; } print "</TR>";
where you now have the push @LS code... would work just as well.

...or something similar, I don't know if I am right about the data, and you may not want to display it that way... but it's just an example
                - Ant