in reply to Re^3: Getting data ready for HTML::Template
in thread Getting data ready for HTML::Template

Awesome! Thanks for these solutions. It's now working to the point where I can figure out the rest because it's just formatting.

Machine Key One Key Two Key Three
machine1 value1 value2 value3
machine2 value4 value5 value6
machine3 value7 value8 value9

Here's the final segment of code:

for $user ( keys %HoH ) { for $machine ( sort keys %{ $HoH{$user} } ) { my %row_data = (); $row_data{MACHINE} = $machine; for my $key ( sort keys %{$HoH{$user}->{$machine} }) { $row_data{$key} = $HoH{$user}->{$machine}->{$key}; } push @{$loop_data}, \%row_data ; } }
Thank you for the help!

Replies are listed 'Best First'.
Re^5: Getting data ready for HTML::Template
by hornet (Initiate) on Dec 04, 2009 at 18:02 UTC
    Could you also provide the code for the template?
Re^5: Getting data ready for HTML::Template
by afoken (Chancellor) on Dec 05, 2009 at 13:29 UTC

    What exactly is your problem? Do you want the table headings aligned with the data? If yes, why the heck do you put headings and data into two completely independent tables? Use a single table. As a side note, get rid of the border attribute and use CSS instead.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)