Dear all,

This seems like a really simple question, so apologies in advance if I'm
doing something stupid, but I've spent a while looking at it and I've RTFM
and browsed the archive.

I'm trying to use the pseudo-methods (or virtual variables as they are
called) such as defined or length. A simple example follows:

_________________________
[% test = 1 %]

[% IF test.defined %]
Test is defined
[% ELSE %]
Test isn't defined
[% END %]
_______________________

Now when I use tpage to parse it, I get the following output:

undef error - don't know how to access [ 1 ].defined at
/usr/local/ActivePerl-5.6/bin/tpage line 47.

I must be missing something trivial - but what?!

Cheers,
Toby
This email and any attachments may be confidential and the subject of legal
professional privilege.  Any disclosure, use, storage or copying of this
email without the consent of the sender is strictly prohibited. Please
notify the sender immediately if you are not the intended recipient and then
delete the email from your inbox and do not disclose the contents to another
person, use, copy or store the information in any medium.


Reply via email to