[OT] PERL

Richmond richmondmathewson at gmail.com
Sun May 18 06:58:30 EDT 2014


On 18/05/14 13:53, Peter W A Wood wrote:
> Richmond
>
> On 18 May 2014, at 18:31, Richmond wrote:
>
>> Can anybody tell me what a % sign [not a hash] as an operator means in PERL?
>>
>> $lo = ($uni - 0x10000) % 0x400 + 0xDC00
>>
>> IFF a % means the same as MOD in Livecode then
>> the formula in the recent stack I made to calculate surrogate pairs is not
>> as bad as it could be and only needs slight modification.
> Perl - %  - Modulus - Divides left hand operand by right hand operand and returns remainder (perl tutorial)
> LiveCode - Evaluates to the remainder left over when one number is divided by another (LC dictionary)
>
> Regards
>
> Peter
>

Thanks: exactly the answer I wanted.

Couldn't find any ref to % by itself online oddly enough.

Richmond.




More information about the use-livecode mailing list