in reply to Die statement with text & formatting of the user

You could create your own equivalent to die that would do the above. Something like:
sub mydie(@) { print h1(@_); exit(0); }

Then you can say:

$select->rows and mydie {class=>'cyan'}, "Error occured $row->{username}! Script h +ave to die";

Update: Fix typo above (Thanks fenLisesi!)