1 2 3 4 5 6 7 8 9 10 11 12 13 14
<% include( '/elements/select-table.html', 'table' => 'hardware_type', 'name_col' => 'model', 'hashref' => $hashref, %opt, ) %> <%init> my %opt = @_; my $classnum = delete $opt{'classnum'}; my $hashref = $opt{'hashref'} || {}; $hashref->{'classnum'} = $classnum if $classnum; </%init>