in reply to Re^7: getting error while writing to a table
in thread getting error while writing to a table
my @values; my $table; foreach my $k (sort {$b <=> $a} keys %input) { foreach (@{$input{$k}}) { chomp(); push( @{@data[$.]},( split /[,\n]/, $_)); } } print "After\n"; print Dumper(\%data); for my $i ( 0 .. $#data ) { $body .= "<tr>"; for ( @{@data[$i]}){ $body .= "<td>$_</td>\r\n"; } $body .= "</tr>"; } $body .= "</table>";
I am getting Global symbol "%values" requires explicit package
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: getting error while writing to a table
by learner@perl (Novice) on Jul 03, 2013 at 11:05 UTC | |
by poj (Abbot) on Jul 03, 2013 at 14:35 UTC |