|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] apl symbols from a file |
Date: | Mon, 15 Feb 2016 10:02:40 +0800 |
Hi Bug APL,the system's word count mechanism says length four. APL says length three, I thought this was going to be length 1 and the symbol '⍝'. Does anyone know what I am doing incorrectly:address@hidden:~/aplstuff$ echo "⍝" > txt
address@hidden:~/aplstuff$ cat txt
⍝
address@hidden:~/aplstuff$ wc txt
1 1 4 txt
address@hidden:~/aplstuff$ ./wc.apl -q -- txt
#!/usr/local/bin/apl
path←∈(⎕ARG ⍳ ⊂'--') ↓ ⎕ARG
tie←⎕FIO[3] path
fontents←{⍵, ⎕FIO[6] tie}⍣{⍺⊢⎕FIO[10] tie}''
fontents←⎕ucs⊃,/⍪(~ fontents∊10 11)⊂fontents
fontents
â
⍴fontents
1 3
)offIt does not display in my email draft, but APL returns two more symbols after the 'a' with the accent. looks like they have values of 0080 and 0090-Alex-Alex
[Prev in Thread] | Current Thread | [Next in Thread] |