Re: "Bad file descriptor" while parameter substituting
Roger Burton West <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Oct 14, 2005 at 07:58:44PM +0400, Petrov Dmithriy wrote:
>Hi, all!
>I gets subj error while substitute parameters for simple template.
>$tmpl->param({'NEWS' => [{'created' => '2005-10-15', 'text' =>
>'sdadsdsdsdw1re32fqr'}]});
You're passing a hashref to param(). Try:
$tmpl->param('NEWS' => [{'created' => '2005-10-15', 'text' =>
'sdadsdsdsdw1re32fqr'}]);
Roger
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl