The or part allows for a statement to be executed if the main part fails.
#!/usr/bin/perl -w $filename = "nofile"; open(TMP, $filename) or die "Can't open \"$filename\"";