Help for this page

Select Code to Download


  1. or download this
    my $loop_data=[
        {Auction=>'Test1', ID=>'1'},
    ...
        {Auction=>'Test4', ID=>'4'},
    ];
    $template->param(table1 => $loop_data);
    
  2. or download this
    my @loop_data=(
        {Auction=>'Test1', ID=>'1'},
    ...
        {Auction=>'Test4', ID=>'4'},
       );
    $template->param(table1 => \@loop_data);
    
  3. or download this
    my $arrayref = $dbi->selectall_arrayref("select statement from sql")
    $arrayref = convert_to_hashes( $arrayref);
    $template->param(table1 => $arrayref);