Re: What does ord mean?

2009-03-07 Thread Bill Stephenson
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

Re: What does ord mean?

2009-03-05 Thread Bill Stephenson
Okay, but now I'm curious. What does ord mean? (or do) Kindest Regards, -- Bill

Re: What does ord mean?

2009-03-05 Thread Sherm Pendley
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. Perl's ord

Re: What does ord mean?

2009-03-05 Thread David Cantrell
On Thu, Mar 05, 2009 at 01:17:38PM -0600, Bill Stephenson wrote: Okay, but now I'm curious. What does ord mean? (or do) perldoc -f ord -- David Cantrell | Nth greatest programmer in the world What profiteth a man, if he win a flame war, yet lose his cool?

What does ord mean?

2009-03-04 Thread Vic Norton
I am confused. I can't figure out what ord does. For example I've pasted the NO-BREAK-SPACE (00A0) between the quotation marks in the ord of the following line. print ord( ), \n; When I run this line in a Perl script I get 194 What does this 194 mean? As far as I know A0 = 10x16 = 160.

Re: What does ord mean?

2009-03-04 Thread Chas. Owens
On Wed, Mar 4, 2009 at 19:58, Vic Norton v...@norton.name wrote: I am confused. I can't figure out what ord does. For example I've pasted the NO-BREAK-SPACE (00A0) between the quotation marks in the ord of the following line.   print ord( ), \n; When I run this line in a Perl script I get  

Re: What does ord mean?

2009-03-04 Thread Paul G. Hackett
NO-BREAK SPACE is 00A0, which in UTF-8 is xC2 xA0. Hex xC2 = Decimal 194. best, Paul Quoting Vic Norton v...@norton.name: I am confused. I can't figure out what ord does. For example I've pasted the NO-BREAK-SPACE (00A0) between the quotation marks in the ord of the following line. print

Re: What does ord mean?

2009-03-04 Thread John Delacour
At 20:44 -0500 4/3/09, Paul G. Hackett wrote: NO-BREAK SPACE is 00A0, which in UTF-8 is xC2 xA0. Hex xC2 = Decimal 194. so #!/usr/bin/perl -w use strict; use utf8; print ord( ), \n; JD