Change 21290: Missing perlfaq chunk.

[email protected] (Rafael Garcia-Suarez)
Newsgroups perl.perlfaq.workers,perl.perl5.changes
Message-ID <[email protected]>
Change 21290 by rgs@rgs-home on 2003/09/20 10:05:38

	Missing perlfaq chunk.

Affected files ...

... //depot/perl/pod/perlfaq4.pod#89 edit

Differences ...

==== //depot/perl/pod/perlfaq4.pod#89 (text) ====
Index: perl/pod/perlfaq4.pod
--- perl/pod/perlfaq4.pod#88~21289~	Sat Sep 20 03:00:12 2003
+++ perl/pod/perlfaq4.pod	Sat Sep 20 03:05:38 2003
@@ -239,7 +239,11 @@
 
 =item How do I convert from decimal to binary
 
-Using unpack;
+Using sprintf (perl 5.6+):
+
+    $bin = sprintf("%b", 3735928559);
+
+Using unpack:
 
     $bin = unpack("B*", pack("N", 3735928559));
 
End of Patch.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.