# Error checking - ways and means

- ## Error checking the hard way...

  $h->method or die "DBI method failed: $DBI::errstr";
  $h->method or die "DBI method failed: $DBI::errstr";
  $h->method or die "DBI method failed: $DBI::errstr";

- ## Error checking the smart way...

  $h->{RaiseError} = 1;
  $h->method;
  $h->method;
  $h->method;

Previous slide | Next slide | Back to first slide | View graphic version