in reply to Re^4: Problems getting info from .xml to display with HTML::Template
in thread Problems getting info from .xml to display with HTML::Template

I don't know what your data structure now looks like, but this is how it should be for your template:
my $department = [ { DEPARTMENT => 'Value1' }, { DEPARTMENT => 'Value2' }, { DEPARTMENT => 'Value3' }, ];

If you don't get it from XML::Simple in that format, you have to loop over the array items to construct the hash references.

  • Comment on Re^5: Problems getting info from .xml to display with HTML::Template
  • Download Code

Replies are listed 'Best First'.
Re^6: Problems getting info from .xml to display with HTML::Template
by Anonymous Monk on Jul 16, 2008 at 15:57 UTC
    Perfect, Thank you!!