in reply to Problems getting info from .xml to display with HTML::Template
$template->param(DEPT => @deptartment);
Even if everything else were correct, this is certainly wrong, since HTML::Template expects an array reference, so use $template->param(DEPT => \@deptartment) instead.
(1) not getting the data from the .xml correctly, or
You can easily check that with Data::Dumper. Actually you can be sure that your data structure is wrong, because there is no nested XML structure in your input.
Please also use use strict; use warnings; in your script to prevent you from doing stupid mistakes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems getting info from .xml to display with HTML::Template
by Anonymous Monk on Jul 16, 2008 at 15:17 UTC | |
by moritz (Cardinal) on Jul 16, 2008 at 15:26 UTC | |
by Anonymous Monk on Jul 16, 2008 at 15:40 UTC | |
by moritz (Cardinal) on Jul 16, 2008 at 15:55 UTC | |
by Anonymous Monk on Jul 16, 2008 at 15:57 UTC |