>>>>> "Sergey" == Sergey <[EMAIL PROTECTED]> writes:
Sergey> $VAR1 = bless( [
Sergey> {
Sergey> 'content' => 'c1',
Sergey> 'name' => 'abc',
Sergey> 'id' => '21',
Sergey> 'image' => 'tree/21/4.gif'
Sergey> },
Sergey> {
Sergey> 'content' => 'c2',
Sergey> 'name' => 'xyz',
Sergey> 'id' => '22',
Sergey> 'image' => 'tree/22/wp1.gif'
Sergey> }
Sergey> ], 'S5::Tree::ListObject' );
Sergey> ==============================
Because "persons" is blessed, persons.0 is treated as a method
call, not an index lookup.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates