open(FILE,"foo.txt") or die "couldn't open file"; #### use csLogs::Error; open(FILE,"foo.txt") or csDie(...);