cvs commit: perlfaq perlfaq4.pod
[email protected] (Robert Spier) 25 Aug 2003 05:58:04 -0000
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
cvsuser 03/08/24 22:58:04
Modified: . perlfaq4.pod
Log:
Fix previous patch. oct and ord were confused.
Revision Changes Path
1.47 +3 -3 perlfaq/perlfaq4.pod
Index: perlfaq4.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq4.pod,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -w -r1.46 -r1.47
--- perlfaq4.pod 24 Aug 2003 05:35:31 -0000 1.46
+++ perlfaq4.pod 25 Aug 2003 05:58:04 -0000 1.47
@@ -1,6 +1,6 @@
=head1 NAME
-perlfaq4 - Data Manipulation ($Revision: 1.46 $, $Date: 2003/08/24 05:35:31 $)
+perlfaq4 - Data Manipulation ($Revision: 1.47 $, $Date: 2003/08/25 05:58:04 $)
=head1 DESCRIPTION
@@ -197,10 +197,10 @@
$number = 0b10110110;
-Using ord:
+Using oct:
my $input = "10110110";
- $decimal = ord( "0b$input" );
+ $decimal = oct( "0b$input" );
Using pack and ord: