- if (not open($input_fh, "<", $input)) {
- error(4, "%s: %s\n", $input, $!);
+ if ($input eq "-") {
+ $input_fh = *STDIN;
+ $input_abs = File::Spec->rel2abs(".");
+ } else {
+ if (not open($input_fh, "<", $input)) {
+ error(4, "%s: %s\n", $input, $!);
+ }
+ $input_abs = File::Spec->rel2abs($input);