in reply to syntax issues

Missing semicolon in line 3:
$count = $#list1
as for question two:

Update: Doh! Give me some time. I'm confused.

Update 2:
while (my @row = $sth5->fetchrow_array()) { push @list_of_teamdata, [ @row[0..2] ]; }
This pushes a reference to a copy of @row onto the array. You don't need to first declare variables of elements in the array, since you appeared to be pushing them on in the same order as they were in @row.

Oh, and the 's' in $Score is a capital whereas the 's' in the $score you were trying to push onto the array was not :-)

You may want to re-read perlref...

This is of course all untested, standard disclaimer holds...

[ ar0n, a confused little boy ]

Replies are listed 'Best First'.
Re: (ar0n) Re: syntax issues
by Anonymous Monk on Mar 29, 2001 at 02:15 UTC
    my data structure has to have the format of
    team1 score team2 score team3 score etc
    so i end up with a team name and a score in each element of  @list_of_teamdata so that when i reference the score in row 0 i can use the step.  @list_of_teamdata[0][0]