Loading APL script from GNU APL session

334 Views Asked by At

In GNU APL, is there a way to load an APL script (text file) from a running APL session?

2

There are 2 best solutions below

0
user11432032 On BEST ANSWER

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

2
user11423956 On

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.