html - How to exit a tmpl loop in perl? -
i use html templates in perl generate dynamic website, script1.pm generates table , sends tmpl_loop template.tmpl show table on website.
this works pretty far, table gets bigger 100,000 rows, whole browser starts lag.
can somehow set counter exit tmpl loop after 10000 iterations?
just making table smaller in script doesn't work cause need completed export file.
if you're using template::toolkit, can use special loop variable:
[% foreach match in results %] [% last if loop.count > 10000 %] [% end %] note break alias last.
Comments
Post a Comment