my $stmt = "SELECT * FROM subscriber_contact WHERE subscriber_id = ?";
my %customer = % { $dbh->selectrow_hashref($stmtm, undef, $user_name)) };
####
my $stmt = "SELECT * FROM users WHERE username = ?";
my %userdata = % { $dbh->selectrow_hashref($stmt, undef, $user_name) };
####
Can't call method "selectrow_hashref" on an undefined value