Errata

Automating System Administration with Perl

Errata for Automating System Administration with Perl

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Other Digital Version ix
title of third subsection of chapter 5

The third subsection of chapter 5 is titled "Domain Name Service (DNS)".

While perhaps plausible, DNS actually stands for Domain Name System. See RFC 1034, for example. It's really hard to believe that the editors and proofreaders at O'Reilly would allow such a serious mistake to make it all the way into print, and that nobody else has reported this error before.

Of course, the mistake also exists in the pages within chapter 5 that constitute this subsection.

William Bresler  Aug 25, 2011 
Printed, PDF, Page 29
unlink statement in both examples of the wanted subroutine

my $r;
sub wanted {
/^core$/ && print("$name\n") && defined $r && unlink($name);
}

should be

my $r;
sub wanted {
/^core$/ && print("$name\n") && defined $r && unlink($_);
}

and

my $r;
sub wanted {
/^core$/ && -s $name && print("$name\n") &&
defined $r && unlink($name);
}

should be

my $r;
sub wanted {
/^core$/ && -s $name && print("$name\n") &&
defined $r && unlink($_);
}

Alex Raguero  Aug 26, 2010 
Printed Page 34
1st paragraph

stat(_) probably should be stat($_)

Anonymous  Nov 03, 2010 
Printed Page 55
1st paragraph

The following line:

. ''s homedir is not owned by the correct uid ('

probably should be:

. "'s homedir is not owned by the correct uid ("

Anonymous  Nov 03, 2010 
Printed Page 87
"flags" hash key

In building the hash for creating the Windows user account, the bit flags need to be set properly in order to set the correct information for the account. The book example is AND'ing the values:

flags => ( Win32API::Net::UF_SCRIPT() &
Win32API::Net::UF_NORMAL_ACCOUNT() )

which results in setting none of the flags; i.e., '0'.

These values should be OR'ed instead:

flags => ( Win32API::Net::UF_SCRIPT() |
Win32API::Net::UF_NORMAL_ACCOUNT() )

which results in the flags being set properly; i.e., '1000000001'

For reference: http://search.cpan.org/~jdb/Win32API-Net-0.12/Net.pm#USER_FLAGS

parepidemos  Sep 02, 2009 
Printed Page 397
mid section

#2 is "Warning", etc.

Original writing:
#my @types = ('','Error','Warning',''Information");

Correct:
my @types = ("", "Error", "Warning", "", "Information");

Matthias Haegele  Oct 09, 2009 
Printed Page 492
Bottom of page 492, line five from top of 493

The 'nemesis' command line at bottom of page 492
shows source address 192.168.0.2.

The output shown at top of page 493
shows source address 192.168.0.4.

I think these should show the same address.

C Poda  Aug 20, 2009