Replace 'our' by 'my' in Perl scripts
This commit is contained in:
parent
37990f98b2
commit
f66a28079b
2 changed files with 7 additions and 7 deletions
|
@ -63,11 +63,11 @@ use warnings;
|
||||||
|
|
||||||
use Errno qw(ENOENT);
|
use Errno qw(ENOENT);
|
||||||
|
|
||||||
our (%filename, %chapter, %see_also, %sanr);
|
my (%filename, %chapter, %see_also, %sanr);
|
||||||
our ($filename, %subjfil);
|
my ($filename, %subjfil);
|
||||||
|
|
||||||
# Get known subjects
|
# Get known subjects
|
||||||
our @Subjects = split(' ', read_make_var("subjects", "subjects.mk", ""));
|
my @Subjects = split(' ', read_make_var("subjects", "subjects.mk", ""));
|
||||||
|
|
||||||
# Parse the .t files
|
# Parse the .t files
|
||||||
for my $f (@ARGV) {
|
for my $f (@ARGV) {
|
||||||
|
|
|
@ -42,9 +42,9 @@ use warnings;
|
||||||
use File::stat;
|
use File::stat;
|
||||||
|
|
||||||
# The chapters, in order
|
# The chapters, in order
|
||||||
our @Chapters = qw/Introduction Concept Command Server/;
|
my @Chapters = qw/Introduction Concept Command Server/;
|
||||||
|
|
||||||
our $filename;
|
my $filename;
|
||||||
my (%subject, %level, %desc, %long);
|
my (%subject, %level, %desc, %long);
|
||||||
my $largest = "";
|
my $largest = "";
|
||||||
|
|
||||||
|
@ -137,8 +137,8 @@ sub parse_file {
|
||||||
|
|
||||||
$_ = <F>;
|
$_ = <F>;
|
||||||
if (/^\.LV (\S+)$/) {
|
if (/^\.LV (\S+)$/) {
|
||||||
if ($1 ne 'Basic' && $1 ne 'Expert') {
|
if ($1 ne 'Basic' && $1 ne 'Expert' && $1 ne 'Obsolete') {
|
||||||
error("The argument to .LV was '$1' but it must be either 'Basic' or 'Expert'");
|
error("The argument to .LV was '$1' but it must be either 'Basic', 'Expert', or 'Obsolete'");
|
||||||
}
|
}
|
||||||
$lvl = $1;
|
$lvl = $1;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue