in reply to HTML::Templates and Array Refs

$pop->get returns a reference to an array containing the message lines.

Since you need to pass a scalar there, you should try something like join("",@$msg).

But I warn you, interpolating the whole message into a page like that is not going to look pretty...

Replies are listed 'Best First'.
(wil) Re: Re: HTML::Templates and Array Refs
by wil (Priest) on Mar 16, 2004 at 12:39 UTC
    Thank you! That worked.

    And don't worry, I won't be displaying these on a page. I was just doing that for testing purposes. They will eventually be piped into a database.

    - wil
      A tip that might help you solve these problems on your own next time. Use Data::Dumper! I always dump the data structure in question to STDERR first:
      use Data::Dumper; ... warn Dumper \@messages;
      H::T can still leave you befuddled as to why it got the wrong "data type", but 9 times out of 10 Data::Dumper has shown me the light. ;)

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)