From: David Nicol Date: Tue, 8 Mar 2005 18:23:11 +0000 (-0600) Subject: Re: [perl #34155] perldoc -f hex should say how to convert back X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=38366c114d966e1bfc88beb6923273d54aa6e78d;p=p5sagit%2Fp5-mst-13.2.git Re: [perl #34155] perldoc -f hex should say how to convert back Message-ID: <934f64a20503081623713f6d27@mail.gmail.com> p4raw-id: //depot/perl@24036 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index c15185e..559e94b 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2265,7 +2265,7 @@ See also L for a list composed of the results of the BLOCK or EXPR. =item hex Interprets EXPR as a hex string and returns the corresponding value. -(To convert strings that might start with either 0, 0x, or 0b, see +(To convert strings that might start with either C<0>, C<0x>, or C<0b>, see L.) If EXPR is omitted, uses C<$_>. print hex '0xAf'; # prints '175' @@ -2273,7 +2273,8 @@ L.) If EXPR is omitted, uses C<$_>. Hex strings may only represent integers. Strings that would cause integer overflow trigger a warning. Leading whitespace is not stripped, -unlike oct(). +unlike oct(). To present something as hex, look into L, +L, or L. =item import