- open($input_fh, "<", $input);
- open($output_fh, ">", $output);
+ if (not open($input_fh, "<", $input)) {
+ error(4, "%s: %s\n", $input, $!);
+ }
+ if (not open($output_fh, ">", $output)) {
+ error(4, "%s: %s\n", $output, $!);
+ }
+
+ %ENV = (
+ "DOCUMENT_NAME" => $input,
+ "DOCUMENT_URI" => $input,
+ );