in reply to Re^4: getting error while writing to a table
in thread getting error while writing to a table

I am getting same output

I'm sorry but that is not possible; I'd like to help you if you're willing to work with me; first step is dd-umper a hashref like I showed

  • Comment on Re^5: getting error while writing to a table

Replies are listed 'Best First'.
Re^6: getting error while writing to a table
by learner@perl (Novice) on Jul 03, 2013 at 10:14 UTC
    Hi, where you want me to use print dd(\%input), when i use the print dd(\%input);i am, what i understood is use about use Data::Dumper; is by using perl module we can print the data structure of array/hash, can you please guide where you want me to dd\%input

      Right before foreach my $k (keys %input) {

      Then do the same for @data right before for my $i ( 0 .. $#data ) {

        Hi,
        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