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


In reply to Re: Picking out text by suaveant
in thread Picking out text by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.