Permalink
Browse files

corrected a mistake in interpretation of code examples in prog perl 4th

  • Loading branch information...
1 parent 0fc30f8 commit c6ff768d3afe5cc60f5982d4ed4266e1f9a089c1 Mithaldu committed with wchristian Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rejected/prog_perl_4th.mdwn
View
2 rejected/prog_perl_4th.mdwn
@@ -1,6 +1,6 @@
Programming Perl 4th Edition is a good book, however it is also a book with a lot of history. Huge parts of its contents stem from 1991 and have a very outdated style of Perl. 4th Edition tries to upgrade this somewhat, but did not to so with enough diligence to permit me to recommend it. Some specific issues:
* strict and warnings are not higlighted at all. In the preface chapter there are two code examples without strict and one is written as if it was not in effect. In fact, strict first occurs on the 14th page of the first chapter on the third page of a sub-chapter at the bottom of a page.
-* On later pages in the book code examples consistently act as if there was no strict present.
+* <s>On later pages in the book code examples consistently act as if there was no strict present.</s> This was incorrect, $a and $b were being used and are always declared since they're [[magical variables|https://metacpan.org/module/perlvar]]. I'm leaving this here because i think it presents an issue in itself.
* given/when and smartmatching are one of the first things highlighted. That is unfortunate since these features are rife with issues, inconsistencies and their future is pretty contentious.
* The first filehandles encountered are of the bareword kind. Others have written mounds on why this is not a wise choice and i do not think this should be one of the first things a newbie sees.

0 comments on commit c6ff768

Please sign in to comment.