* Carl Johnstone <[EMAIL PROTECTED]> [2007-11-12 12:10]:
> jagdish eashwar wrote:
>> I am getting only the last value in the tt2 template. 
> You're actually getting the number of items in the list,
> because that's what you get when you turn a list into a single
> value.

No, that’s what you get from an array in scalar context. Lists
and arrays are not the same.

    $ perl -le'@_=("a"..."z"); print [EMAIL PROTECTED]; print [EMAIL PROTECTED]'
    26
    z

(I didn’t just say `$_=("a".."z")` because that puts the
right-hand side in scalar context, where the `..` operator is
a flip-flop, not a range.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to