简体   繁体   English

从GNU APL会话加载APL脚本

[英]Loading APL script from GNU APL session

在GNU APL中,有没有一种方法可以从正在运行的APL会话中加载APL脚本(文本文件)?

I cannot add a comment because I keep getting " This action requires 50 reputation." 我无法添加评论,因为我不断收到“此操作需要50点声望”。

Short answer: 简短答案:

Make the first 2 characters of your script: #! 输入脚本的前两个字符:#!

Long answer: 长答案:

See Chapter 3.1.6 of Helpful-Features-for-Scripting 请参见第3.1.6节“ 有用的脚本功能”

In immediate execution you can load the script with commands )LOAD or )COPY. 立即执行时,可以使用命令)LOAD或)COPY加载脚本。

If an APL program is being executed then eg ⍎')COPY filename' can be used. 如果正在执行APL程序,则可以使用⍎')COPY filename'。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM