Read from both STDIN and named files
authorJonathan Blake <jonathan.blake@projectaon.org>
Tue, 13 Aug 2019 02:34:45 +0000 (19:34 -0700)
committerJonathan Blake <jonathan.blake@projectaon.org>
Tue, 13 Aug 2019 02:34:45 +0000 (19:34 -0700)
common/scripts/split-sections.pl

index 59ceef4..f16d2a8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/env perl
+#!/usr/bin/env perl
 
 use strict;
 use autodie;
@@ -13,7 +13,7 @@ my $line = "";
 my $section = "";
 my $filename = "";
 
-while ($line = <STDIN>) {
+while ($line = <>) {
     chomp ($line);
     print STDERR "DEBUG: Reading '$line'\n" if $debug;
     if ($line =~ /^(\d+)$/) {