Using Dyalog APL as a scripting language

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...

Using Dyalog APL as a scripting language

Postby alexeyv on Fri Feb 03, 2017 7:41 pm

The GNU APL allows to write APL code in text file and execute it as an ordinary script:
Code: Select all
#!apl --script --

⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝⍝
⍝ Simple APL script example

a←⍳10
⎕←a

)off

Run it:
Code: Select all
./print.apl
1 2 3 4 5 6 7 8 9 10



Is there a way to use Dyalog APL in the similar manner?
alexeyv
 
Posts: 48
Joined: Tue Nov 17, 2015 4:18 pm

Return to New to Dyalog?

Who is online

Users browsing this forum: No registered users and 1 guest