added a note about the new binary literal notation for the number format answer.
Index: perlfaq4.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq4.pod,v
retrieving revision 1.20
diff -u -d -r1.20 perlfaq4.pod
--- perlfaq4.pod 7 Apr 2002 18:46:13 -0000 1.20
+++ perlfaq4.pod 2 May 2002 05:20:49 -0000
@@ -135,7 +135,7 @@
optimized for speed on some operations, and for at least some
programmers the notation might be familiar.
-=item B<How do I convert Hexadecimal into decimal:>
+=item B<How do I convert hexadecimal into decimal:>
Using perl's built in conversion of 0x notation:
@@ -213,6 +213,11 @@
$oct = reverse join('', $vec->Chunk_List_Read(3));
=item B<How do I convert from binary to decimal:>
+
+Perl 5.6 lets you write binary numbers directly with
+the 0b notation:
+
+ $number = 0b10110110;
Using pack and ord