Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fb3ad78

Browse files
committed
Improve style of generate_history.pl Perl script.
1 parent 6713227 commit fb3ad78

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/generate_history.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
use strict;
1515

16-
my($srcdir) = shift;
17-
defined($srcdir) || die "$0: missing required argument: srcdir\n";
18-
my($infile) = shift;
19-
defined($infile) || die "$0: missing required argument: inputfile\n";
16+
my $srcdir = shift;
17+
die "$0: missing required argument: srcdir\n" if !defined($srcdir);
18+
my $infile = shift;
19+
die "$0: missing required argument: inputfile\n" if !defined($infile);
2020

2121
# Emit DOCTYPE header so that the output is a self-contained SGML document
2222
print "<!DOCTYPE appendix PUBLIC \"-//OASIS//DTD DocBook V4.2//EN\">\n";
@@ -26,11 +26,11 @@
2626
exit 0;
2727

2828
sub process_file {
29-
my($filename) = @_;
29+
my $filename = shift;
3030

3131
local *FILE; # need a local filehandle so we can recurse
3232

33-
my($f) = $srcdir . '/' . $filename;
33+
my $f = $srcdir . '/' . $filename;
3434
open(FILE, $f) || die "could not read $f: $!\n";
3535

3636
while (<FILE>) {

0 commit comments

Comments
 (0)