-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Jon Ross <jon.ross at aertech.co.uk> [2003-06-04 12:28]:
> - but :
>     my %view_data;
>     my $view_data= $hello->view();

These are two different things.  $view_data is a scalar, not a member of
the %view_data hash.  What you want, I think, is:

  my %view_data;
  $view_data{'hello'} = $hello->view;

Since you are only passing %view_data to the template, the results of
$hello->view (in $view_data) is being discarded, and not passed to
the template.

(This is really a Perl issue; because of the way Perl stores variables,
%view_data and $view_data are different, unrelated variables.)

(darren)

- -- 
Don't be ashamed to say what you are not ashamed to think.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: This message is digitally signed and can be verified for authenticity.

iD8DBQE+3h8mzsinjrVhZaoRAlhwAKCSQRFjYddy30dM4PVDn+HSud1frQCfcSiR
bcxZXmmxIphAm7SL8aEggxg=
=3qeF
-----END PGP SIGNATURE-----

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to