[Templates] Trying to remember the change
Randal L. Schwartz
merlyn at stonehenge.com
Wed Feb 27 20:54:49 GMT 2008
>>>>> "Bill" == Bill Moseley <moseley at hank.org> writes:
Bill> Want to list ids associated with artists and show the ids in order.
Bill> The cd objects stringify to its id.
Bill> CD ISs: [% artist.cds.nsort.join( ', ' ) %]
Bill> This works if the artist has more than one CD. If they only have one
Bill> then I get:
Bill> CD IDs: id
Bill> Note the string "id".
What is making artist.cds ? It needs to return an arrayref,
not a list. The magical list return stuff makes a single item
into a scalar, and multiple items into an array. That's your breakdown.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <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!
More information about the templates
mailing list