in reply to TIMTOWTDI -- so long as it's not my way
Recently I ran across the efforts of an apparently homicidal predecessor when I was asked to fix a project that contained a line that looked a bit like this:
$dbh = DBI->connect("DBI:$dbm:$db:$server", $user, $pwd) && die ("Unable to connect to database $db: $DBI::errstr\n");
I might have ruled that an accidental death, but it was really the start of a rampage. In the project which consisted of perhaps 10 files, this was done every single time that 'die' was used.
|
|---|