>>>>> "Bill" == Bill Moseley <[EMAIL PROTECTED]> writes:

Bill>     page.style_sheet = [];

Bill>     MACRO include_style_sheet( name ) BLOCK;
Bill>         css_found = 0;
Bill>         FOR css = page.style_sheet;
Bill>             IF css == name;
Bill>                 css_found = 1;
Bill>                 LAST;
Bill>             END;
Bill>         END;
Bill>         page.style_sheet.push( name ) UNLESS css_found;
Bill>     END;

Why are you using an array when a hash would be so much easier?

-- 
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

Reply via email to