[erlang-questions] escript and define

Stefan Strigler steve@REDACTED
Wed Sep 19 17:45:12 CEST 2007


Hi there,

is there a way to define constants in escript? I've tried with

#!/usr/bin/env escript

-define(FOO, "hello world").

main(_) ->
    io:format("~s", [?FOO]).

but no luck. 

Any help appreciated,

Steve




More information about the erlang-questions mailing list