In GNU APL, is there a way to load an APL script (text file) from a running APL session?
Asked
Active
Viewed 298 times
2 Answers
2
I cannot add a comment because I keep getting " This action requires 50 reputation."
Short answer:
Make the first 2 characters of your script: #!
Long answer:
See Chapter 3.1.6 of Helpful-Features-for-Scripting

Tamir Klein
- 3,514
- 1
- 20
- 38

user11432032
- 36
- 1
1
In immediate execution you can load the script with commands )LOAD or )COPY.
If an APL program is being executed then e.g. ⍎')COPY filename' can be used.

user11423956
- 11
- 1
-
1When I use `)LOAD` or `)COPY` I get an error message saying that the file "does not have the format of a GNU APL .xml or .apl file". – August Karlstrom Apr 28 '19 at 20:34
-
1I created the script with a normal text editor. What I want is the ability to edit APL code in a plain (UTF-8) text file. – August Karlstrom Apr 29 '19 at 14:18