August 08, 2011

Erlang 筆記

pwd().

cd("dir").

如果檔名是math1.erl,compile的指令
c(math1).

檔案裡的module要跟檔名相同
-module(math1).

執行
math1:function(args).

No comments: