develooper Front page | perl.perl5.porters | Postings from April 2011

Re: Is perldelta missing an incompatibility entry for \cX?

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
April 23, 2011 08:49
Subject:
Re: Is perldelta missing an incompatibility entry for \cX?
Message ID:
18476.1303573731@chthon
Karl Williamson <public@khwilliamson.com> wrote
   on Sat, 23 Apr 2011 09:40:46 MDT: 

>> I always thought that Control-X meant ('X'^'@') in C, so (ord("X") ^
>> ord("@") in Perl, and that the reason for writing  ^C is because of the
>> xor.  I notice there's no mention of xor'ing with an "@".  I like that
>> explanation because it explains why a ^@ is NUL, why ^? is DEL, etc.

> Patches welcome.

I find having to memorize lookup tables doesn't work as well for
me as knowing what formula to apply.  But perhaps I am in the
minority on this.

I'll see what I can think of, though.

Thank you, Karl.

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About