On Thu, Jun 03, 2004 at 03:06:02PM -0400, Jason Gottshall wrote:

> scalar.list # treat as a single-item list

Cool. I didn't know about this one. I have a related question, maybe
some one can help me solve.

Is there any equivalent to perl's 'ref' in template toolkit, to
determine whether or not a variable contains a scalar, arrayref or
hashref?

Does the above 'list' virtual method work on values that are not scalar?
If so, when you use it on an item that is already a list, does it create a list
of one list, or just leave it since it is already a list? And if this is
the case, what happens in the case of a hash?

Thanks in advance
Kat

-- 
Please do not send me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html


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

Reply via email to