<%init> my %opt = @_; unless ( $opt{'access_user'} ) { tie %{ $opt{'access_user'} }, 'Tie::IxHash'; my $sth = dbh->prepare(" SELECT usernum, username FROM access_user WHERE disabled = '' or disabled IS NULL ORDER BY username ") or die dbh->errstr; $sth->execute or die $sth->errstr; while ( my $row = $sth->fetchrow_arrayref ) { $opt{'access_user'}->{$row->[0]} = $row->[1]; } }