Folks,

Been using HTML::Template in a few projects.  Really nice not to have
HTML tangled in the Perl code.

Got a largish hash I am sorting.  Want to output only about 15 lines
of the table.  Is there a way to tell the loop to stop?

Here's what I'm doing:

my @calloutdata;
foreach $callskey ( sort {$callnum{$b} <=> $callnum{$a}} keys %callnum){
    my %outbound;
    $outbound{EXTENNUMCALLED}  = $callskey;
    $outbound{TIMESCALLED}      = $callnum{$callskey};
    push( @calloutdata, \%outbound );
}

        $template->param( OUTBOUNDS => \@calloutdata );

The calloutdata array winds up to be about 200 lines long.  Any way to
have the TMPL_LOOP stop output after 15 or so table lines?

Nothing in the docs suggests a way to do this (or am I missing something?).

TIA,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto
Visit my web page at: http://david.bandel.us/

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to