Change 13113 by jhi@alpha on 2001/11/20 00:55:25
Subject: [DOC PATCH] perlfaq4.pod
From: Tim Jenness <[EMAIL PROTECTED]>
Date: Mon, 19 Nov 2001 15:31:36 -1000 (HST)
Message-ID: <Pine.LNX.4.33.0111191530180.5914-100000@lapaki>
Affected files ...
.... //depot/perl/pod/perlfaq4.pod#56 edit
Differences ...
==== //depot/perl/pod/perlfaq4.pod#56 (text) ====
Index: perl/pod/perlfaq4.pod
--- perl/pod/perlfaq4.pod.~1~ Mon Nov 19 18:00:05 2001
+++ perl/pod/perlfaq4.pod Mon Nov 19 18:00:05 2001
@@ -136,13 +136,15 @@
optimized for speed on some operations, and for at least some
programmers the notation might be familiar.
+=over 4
+
=item B<How do I convert Hexadecimal into decimal:>
Using perl's built in conversion of 0x notation:
$int = 0xDEADBEEF;
$dec = sprintf("%d", $int);
-
+
Using the hex function:
$int = hex("DEADBEEF");
@@ -247,6 +249,7 @@
The remaining transformations (e.g. hex -> oct, bin -> hex, etc.)
are left as an exercise to the inclined reader.
+=back
=head2 Why doesn't & work the way I want it to?
End of Patch.