projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6f0efb1
)
Missing perlfaq chunk.
Rafael Garcia-Suarez [Sat, 20 Sep 2003 10:05:38 +0000 (10:05 +0000)]
p4raw-id: //depot/perl@21290
pod/perlfaq4.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfaq4.pod
b/pod/perlfaq4.pod
index
53c7d02
..
7d3a5bc
100644
(file)
--- a/
pod/perlfaq4.pod
+++ b/
pod/perlfaq4.pod
@@
-239,7
+239,11
@@
Using Bit::Vector:
=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));