mipatel has asked for the wisdom of the Perl Monks concerning the following question:
hello, i am having trouble debugging this program could someone help me please
foreach $Author2 ( @author_order ) { $auth = $author_books{ $Author2 }; my $books = $auth->{order}; push @body, "<tr><td rowspan="${\scalar, @$books}"$Author2</td>\n" +; my $line = 0; foreach my $book ( @$books ) { push @body, '<tr><td></td>' if ++$line; push @body , ( "<td>$book</td><td>" . join( "<br/>\n", @{ $auth->{books}{ $book } } ) . "</td><tr>\n" ); } }
The error says Scalar found where operator expected at rough.pl line 43, near
<tr><td rowspan="$" (Missing operator before $?) String found where operator expected at rough.pl line 43, near "}"$Aut +hor2</td>\n"" (Missing operator before "$Author2</td>\n"?) syntax error at rough.pl line 43, near ""<tr><td rowspan="$"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scaler found where opeartor expected Error
by muba (Priest) on May 29, 2012 at 18:36 UTC | |
by mipatel (Novice) on May 29, 2012 at 19:09 UTC | |
|
Re: Scaler found where opeartor expected Error
by NetWallah (Canon) on May 29, 2012 at 21:22 UTC | |
|
Re: Scaler found where opeartor expected Error
by poj (Abbot) on May 29, 2012 at 21:24 UTC | |
by AnomalousMonk (Archbishop) on May 29, 2012 at 23:58 UTC |