Re: What does ord mean?

[email protected] (Jonas Brømsø Nielsen)
Newsgroups perl.macosx
Message-ID <[email protected]>
Hello,

Patches are welcome to the Perl POD.

jonasbn

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  
>> <[email protected]> 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: [email protected]
ICQ: 62401545   MSN: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.