[svn:perlfaq] r6750 - perlfaq/trunk

[email protected] Sat, 5 Aug 2006 17:30:54 -0700 (PDT)
Newsgroups perl.cvs.perlfaq
Message-ID <[email protected]>
Author: comdog
Date: Sat Aug  5 17:30:54 2006
New Revision: 6750

Modified:
   perlfaq/trunk/perlfaq2.pod
   perlfaq/trunk/perlfaq3.pod
   perlfaq/trunk/perlfaq4.pod

Log:
* Updated references to Intermediate Perl

* removed some stale books from perlfaq2.

* added note about tie slowness to perlfaq4 answer, along with resulting
format adjustments. Added some indexing too.


Modified: perlfaq/trunk/perlfaq2.pod
==============================================================================
--- perlfaq/trunk/perlfaq2.pod	(original)
+++ perlfaq/trunk/perlfaq2.pod	Sat Aug  5 17:30:54 2006
@@ -252,31 +252,11 @@
 presented in the same style as the Llama book, continue your education
 with the Alpaca book:
 
-	Learning Perl Objects, References, and Modules (the "Alpaca Book")
-	by Randal L. Schwartz, with Tom Phoenix (foreword by Damian Conway)
-	ISBN 0-596-00478-8 [1st edition June 2003]
+	Intermediate Perl (the "Alpaca Book")
+	by Randal L. Schwartz and brian d foy, with Tom Phoenix (foreword by Damian Conway)
+	ISBN 0-596-10206-2 [1st edition March 2006]
 	http://www.oreilly.com/catalog/lrnperlorm/
 
-If you're not an accidental programmer, but a more serious and
-possibly even degreed computer scientist who doesn't need as much
-hand-holding as we try to provide in the Llama, please check out the
-delightful book
-
-	Perl: The Programmer's Companion
-	by Nigel Chapman
-	ISBN 0-471-97563-X [1997, 3rd printing Spring 1998]
-	http://www.wiley.com/compbooks/catalog/97563-X.htm
-	http://www.wiley.com/compbooks/chapman/perl/perltpc.html (errata etc)
-
-If you are more at home in Windows the following is available
-(though unfortunately rather dated).
-
-	Learning Perl on Win32 Systems (the "Gecko Book")
-	by Randal L. Schwartz, Erik Olson, and Tom Christiansen,
-	    with foreword by Larry Wall
-	ISBN 1-56592-324-3 [1st edition August 1997]
-	http://www.oreilly.com/catalog/lperlwin/
-
 Addison-Wesley ( http://www.awlonline.com/ ) and Manning
 ( http://www.manning.com/ ) are also publishers of some fine Perl books
 such as I<Object Oriented Programming with Perl> by Damian Conway and
@@ -321,9 +301,9 @@
 	ISBN 0-596-10105-8 [4th edition July 2005]
 	http://www.oreilly.com/catalog/learnperl4/
 
-	Learning Perl Objects, References, and Modules
-	by Randal L. Schwartz, with Tom Phoenix (foreword by Damian Conway)
-	ISBN 0-596-00478-8 [1st edition June 2003]
+	Intermediate Perl (the "Alpaca Book")
+	by Randal L. Schwartz and brian d foy, with Tom Phoenix (foreword by Damian Conway)
+	ISBN 0-596-10206-2 [1st edition March 2006]
 	http://www.oreilly.com/catalog/lrnperlorm/
 
 =item Task-Oriented

Modified: perlfaq/trunk/perlfaq3.pod
==============================================================================
--- perlfaq/trunk/perlfaq3.pod	(original)
+++ perlfaq/trunk/perlfaq3.pod	Sat Aug  5 17:30:54 2006
@@ -943,9 +943,8 @@
 L<perlboot>, L<perltoot>, L<perltooc>, and L<perlbot> for reference.
 
 A good book on OO on Perl is the "Object-Oriented Perl"
-by Damian Conway from Manning Publications, or "Learning Perl
-References, Objects, & Modules" by Randal Schwartz and Tom
-Phoenix from O'Reilly Media.
+by Damian Conway from Manning Publications, or "Intermediate Perl" 
+by Randal Schwartz, brian d foy, and Tom Phoenix from O'Reilly Media.
 
 =head2 Where can I learn about linking C with Perl?
 

Modified: perlfaq/trunk/perlfaq4.pod
==============================================================================
--- perlfaq/trunk/perlfaq4.pod	(original)
+++ perlfaq/trunk/perlfaq4.pod	Sat Aug  5 17:30:54 2006
@@ -1867,24 +1867,28 @@
 		} keys %hash;
 
 =head2 How can I always keep my hash sorted?
+X<hash tie sort DB_File Tie::IxHash>
 
-You can look into using the DB_File module and tie() using the
-$DB_BTREE hash bindings as documented in L<DB_File/"In Memory Databases">.
-The Tie::IxHash module from CPAN might also be instructive.
+You can look into using the C<DB_File> module and C<tie()> using the
+C<$DB_BTREE> hash bindings as documented in L<DB_File/"In Memory
+Databases">. The C<Tie::IxHash> module from CPAN might also be
+instructive. Although this does keep your hash sorted, you might not
+like the slow down you suffer from the tie interface. Are you sure you
+need to do this? :)
 
 =head2 What's the difference between "delete" and "undef" with hashes?
 
 Hashes contain pairs of scalars: the first is the key, the
 second is the value.  The key will be coerced to a string,
 although the value can be any kind of scalar: string,
-number, or reference.  If a key $key is present in
+number, or reference.  If a key C<$key> is present in
 %hash, C<exists($hash{$key})> will return true.  The value
 for a given key can be C<undef>, in which case
 C<$hash{$key}> will be C<undef> while C<exists $hash{$key}>
 will return true.  This corresponds to (C<$key>, C<undef>)
 being in the hash.
 
-Pictures help...  here's the %hash table:
+Pictures help...  here's the C<%hash> table:
 
 	  keys  values
 	+------+------+