# Store sql queries in @sqls push (@sqls, qq{ DESCRIBE $table{'profile'} }); push (@sqls, qq{ SELECT * FROM $table{'profile'} }); html_start(); print qq~\n~; foreach (@sqls) { $sth = $dbh->prepare($_); $sth->execute() or bail_out("Cannot execute query."); while (my @ary = $sth->fetchrow_array()) { print qq~\n~; foreach (@ary) { print qq~\n~ if $_; } print qq~\n~; } } print qq~
$_
\n~; html_end();