This is a case where the logical and trinary operators can help,
$db = $host eq 'dell' ? DBI->connect("DBI:mysql:nikos_db", "root", "") : DBI->connect("DBI:mysql:nikos_db:50free.net","nikos_db","obscure") or print font({-size=>5, -color=>'Lime'}, $DBI::errstr) and exit 0;
After Compline,
Zaxo
In reply to Re: Print and Die!
by Zaxo
in thread Print and Die!
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |