summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-18 21:38:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-18 21:38:50 +0000
commitf7686833794ab18a8c8729b0e836f6f14223ce97 (patch)
treed255c2970101249e1601619b5f2dc2823762b3a9 /pod
parent3bf1b740556efa27d34ed892a06e05bd56e355f3 (diff)
downloadperl-f7686833794ab18a8c8729b0e836f6f14223ce97.tar.gz
FAQ sync.
p4raw-id: //depot/perl@13084
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfaq4.pod7
1 files changed, 2 insertions, 5 deletions
diff --git a/pod/perlfaq4.pod b/pod/perlfaq4.pod
index 0196407871..f602d24b27 100644
--- a/pod/perlfaq4.pod
+++ b/pod/perlfaq4.pod
@@ -136,15 +136,13 @@ functions is that it works with numbers of ANY size, that it is
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");
@@ -249,7 +247,6 @@ Using Bit::Vector:
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?
@@ -1852,7 +1849,7 @@ in L<perltoot>.
=head2 How can I use a reference as a hash key?
-You can't do this directly, but you could use the standard Tie::RefHash
+You can't do this directly, but you could use the standard Tie::Refhash
module distributed with Perl.
=head1 Data: Misc