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
Okay, but now I'm curious. What does ord mean? (or do)
Kindest Regards,
--
Bill
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
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?
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.
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
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
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