bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] apl symbols from a file


From: alexweiner
Subject: [Bug-apl] apl symbols from a file
Date: Sun, 14 Feb 2016 16:08:52 -0700
User-agent: Workspace Webmail 5.16.5

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
      )off



It 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]