Patches are welcome to the Perl POD.


On 07/03/2009, at 18.08, Bill Stephenson wrote:

On Mar 5, 2009, at 2:23 PM, Sherm Pendley wrote:

On Thu, Mar 5, 2009 at 2:17 PM, Bill Stephenson <bi...@perlhelp.com> wrote:

Okay, but now I'm curious. What does ord mean? (or do)

It's an abbreviation of "ordinal," and returns the position of the character within its charset - i.e., its ordinal value, as opposed to its text value.

Thank you Sherm. I appreciate the clear descriptive answer.

And thank you too, David.

macbill% perldoc -f ord

      ord EXPR
ord Returns the numeric (the native 8-bit encoding, like ASCII or EBCDIC, or Unicode) value of the first character of EXPR. If
              EXPR is omitted, uses $_.

For the reverse, see "chr". See perlunicode and encoding for
              more about Unicode.

I like Sherm's explanation better than the Perl Docs though ;)

Kindest Regards,

Bill Stephenson

AIM: BjonasN      Gtalk: jona...@gmail.com
ICQ: 62401545   MSN: jona...@io.dk

Reply via email to